You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Doug Leeper <do...@yahoo.com> on 2008/02/28 21:15:43 UTC

OT: Wicket web.xml configuration settings and maven

This is slightly off topic but it has todo with our wicket app and utilizing
maven to create the builds.

Maven is new to us and slightly understand the profiling concept in maven
but not sure how to the following...on our production build, we would like
to have the web.xml "configuration" setting changed from development to
production without checking out and manually modifying before building.

Is there any easy way to do this in maven or do we have have set the java
runtime parameter -Dwicket.configuration=production

Any suggestion or best practice?

TIA,

- Doug


-- 
View this message in context: http://www.nabble.com/OT%3A-Wicket-web.xml-configuration-settings-and-maven-tp15744999p15744999.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re:
close tag error

Posted by Igor Vaynberg <ig...@gmail.com>.
assuming SomePanel extends Panel

you cannot embed components into panel's markup. any static markup
inside tags that the panel is attached to will be removed and replaced
by the panel's markup. if you do put a wicket:id into a markup that is
inside panel tags you will get that error. the error means wicket
expects to find </div> right after <div> (skipping any raw markup),
but cannot and instead finds a <a> tag for a wicket component.

-igor


On Thu, Feb 28, 2008 at 12:53 PM, Michael Mehrle <mi...@ask.com> wrote:
> I have <div> like this:
>
>  <div wicket:id="somePanel">
>         <a wicket:id="someModal>
>                 <wicket:message key="label.link" />
>         </a>
>  </div>
>
>  My code is:
>
>  SomePanel somePanel - new SomePanel("somePanel", someModel);
>  ..
>  somePanel.add(new AjaxLink("openModal") {
>         ..
>  }
>
>  I keep getting an error message: WicketMessage: close tag not found for
>  tag: <div wicket:id="somePanel">
>
>  Anyone any idea what I am doing wrong?
>
>  Thanks!
>
>  Michael
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>  For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re:
close tag error

Posted by Jay Hogan <se...@gmail.com>.
Does wicket:message require an explicit close tag? Like this:

<wicket:message key="label.link">Replace me</wicket:message>

On Thu, Feb 28, 2008 at 4:28 PM, Michael Mehrle <mi...@ask.com>
wrote:

> Oh, I just typed this as a simplified example - it's properly done in my
> real code.
>
> Any other suggestions?
>
> -----Original Message-----
> From: Thijs [mailto:vonk.thijs@gmail.com]
> Sent: Thursday, February 28, 2008 12:56 PM
> To: users@wicket.apache.org
> Subject: Re: <div> close tag error
>
> Wicket:id="someModal is missing a "
>
> Michael Mehrle wrote:
> > I have <div> like this:
> >
> > <div wicket:id="somePanel">
> >       <a wicket:id="someModal>
> >               <wicket:message key="label.link" />
> >       </a>
> > </div>
> >
> > My code is:
> >
> > SomePanel somePanel - new SomePanel("somePanel", someModel);
> > ..
> > somePanel.add(new AjaxLink("openModal") {
> >       ..
> > }
> >
> > I keep getting an error message: WicketMessage: close tag not found for
> > tag: <div wicket:id="somePanel">
> >
> > Anyone any idea what I am doing wrong?
> >
> > Thanks!
> >
> > Michael
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
============================================
Computer Science: solving today's problems tomorrow.

RE:
close tag error

Posted by Michael Mehrle <mi...@ask.com>.
Oh, I just typed this as a simplified example - it's properly done in my real code.

Any other suggestions?

-----Original Message-----
From: Thijs [mailto:vonk.thijs@gmail.com] 
Sent: Thursday, February 28, 2008 12:56 PM
To: users@wicket.apache.org
Subject: Re: <div> close tag error

Wicket:id="someModal is missing a "

Michael Mehrle wrote:
> I have <div> like this:
>
> <div wicket:id="somePanel">
> 	<a wicket:id="someModal>
> 		<wicket:message key="label.link" />
> 	</a>
> </div>
>
> My code is:
>
> SomePanel somePanel - new SomePanel("somePanel", someModel);
> ..
> somePanel.add(new AjaxLink("openModal") {
> 	..
> }
>
> I keep getting an error message: WicketMessage: close tag not found for
> tag: <div wicket:id="somePanel">
>
> Anyone any idea what I am doing wrong?
>
> Thanks!
>
> Michael
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE:
close tag error

Posted by Maeder Thomas <th...@ecofin.ch>.
And your ids are mismatched: "someModal" != "openModal" 

> -----Original Message-----
> From: Thijs [mailto:vonk.thijs@gmail.com] 
> Sent: Donnerstag, 28. Februar 2008 21:56
> To: users@wicket.apache.org
> Subject: Re: <div> close tag error
> 
> Wicket:id="someModal is missing a "
> 
> Michael Mehrle wrote:
> > I have <div> like this:
> >
> > <div wicket:id="somePanel">
> > 	<a wicket:id="someModal>
> > 		<wicket:message key="label.link" />
> > 	</a>
> > </div>
> >
> > My code is:
> >
> > SomePanel somePanel - new SomePanel("somePanel", someModel); ..
> > somePanel.add(new AjaxLink("openModal") {
> > 	..
> > }
> >
> > I keep getting an error message: WicketMessage: close tag not found 
> > for
> > tag: <div wicket:id="somePanel">
> >
> > Anyone any idea what I am doing wrong?
> >
> > Thanks!
> >
> > Michael
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re:
close tag error

Posted by Thijs <vo...@gmail.com>.
Wicket:id="someModal is missing a "

Michael Mehrle wrote:
> I have <div> like this:
>
> <div wicket:id="somePanel">
> 	<a wicket:id="someModal>
> 		<wicket:message key="label.link" />
> 	</a>
> </div>
>
> My code is:
>
> SomePanel somePanel - new SomePanel("somePanel", someModel);
> ..
> somePanel.add(new AjaxLink("openModal") {
> 	..
> }
>
> I keep getting an error message: WicketMessage: close tag not found for
> tag: <div wicket:id="somePanel">
>
> Anyone any idea what I am doing wrong?
>
> Thanks!
>
> Michael
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


close tag error

Posted by Michael Mehrle <mi...@ask.com>.
I have <div> like this:

<div wicket:id="somePanel">
	<a wicket:id="someModal>
		<wicket:message key="label.link" />
	</a>
</div>

My code is:

SomePanel somePanel - new SomePanel("somePanel", someModel);
..
somePanel.add(new AjaxLink("openModal") {
	..
}

I keep getting an error message: WicketMessage: close tag not found for
tag: <div wicket:id="somePanel">

Anyone any idea what I am doing wrong?

Thanks!

Michael


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: OT: Wicket web.xml configuration settings and maven

Posted by Doug Leeper <do...@yahoo.com>.
Thanks all for the input.

I didn't use resource filter but did use maven profiles which worked just
find for our needs.  

Is there any issues with using profiles over resource filter?
-- 
View this message in context: http://www.nabble.com/OT%3A-Wicket-web.xml-configuration-settings-and-maven-tp15744999p15793424.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: OT: Wicket web.xml configuration settings and maven

Posted by Juan Gabriel Arias <ju...@gmail.com>.
Our approuch for that is to set the property to "deployment" in the
web.xml_always_
And add the property -Dwicket.configuration=development to tomcat launcher.

I never used the maven resource filtering plugin, but from my zero
experience i see that i must write my web.xml with the variable
Then, define the wicket mode.

<init-param>
    <param-name>configuration</param-name>
    <param-value>$WICKET_MODE</param-value>
</init-param>

This wont work in my dev enviroment, or am i getting everything wrong? =P

Thanks!
Juan


On Fri, Feb 29, 2008 at 12:06 AM, James Carman <ja...@carmanconsulting.com>
wrote:

> On 2/28/08, Igor Vaynberg <ig...@gmail.com> wrote:
> > see maven resource filtering
>
> WOW!  I was using the ant plugin to do this!  This will save me
> sooooooo much headache.
>
> Thanks, Igor.
>
> >
> >
> >  -igor
> >
> >
> >
> >  On Thu, Feb 28, 2008 at 12:15 PM, Doug Leeper <do...@yahoo.com>
> wrote:
> >  >
> >  >  This is slightly off topic but it has todo with our wicket app and
> utilizing
> >  >  maven to create the builds.
> >  >
> >  >  Maven is new to us and slightly understand the profiling concept in
> maven
> >  >  but not sure how to the following...on our production build, we
> would like
> >  >  to have the web.xml "configuration" setting changed from development
> to
> >  >  production without checking out and manually modifying before
> building.
> >  >
> >  >  Is there any easy way to do this in maven or do we have have set the
> java
> >  >  runtime parameter -Dwicket.configuration=production
> >  >
> >  >  Any suggestion or best practice?
> >  >
> >  >  TIA,
> >  >
> >  >  - Doug
> >  >
> >  >
> >  >  --
> >  >  View this message in context:
> http://www.nabble.com/OT%3A-Wicket-web.xml-configuration-settings-and-maven-tp15744999p15744999.html
> >  >  Sent from the Wicket - User mailing list archive at Nabble.com.
> >  >
> >  >
> >  >
>  ---------------------------------------------------------------------
> >  >  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >  >  For additional commands, e-mail: users-help@wicket.apache.org
> >  >
> >  >
> >
> >  ---------------------------------------------------------------------
> >  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >  For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: OT: Wicket web.xml configuration settings and maven

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
I also comes very handy if using one JPA persistence.xml for testing and 
another for production..

James Carman wrote:
> On 2/28/08, Igor Vaynberg <ig...@gmail.com> wrote:
>   
>> see maven resource filtering
>>     
>
> WOW!  I was using the ant plugin to do this!  This will save me
> sooooooo much headache.
>
> Thanks, Igor.
>
>   
>>  -igor
>>
>>
>>
>>  On Thu, Feb 28, 2008 at 12:15 PM, Doug Leeper <do...@yahoo.com> wrote:
>>  >
>>  >  This is slightly off topic but it has todo with our wicket app and utilizing
>>  >  maven to create the builds.
>>  >
>>  >  Maven is new to us and slightly understand the profiling concept in maven
>>  >  but not sure how to the following...on our production build, we would like
>>  >  to have the web.xml "configuration" setting changed from development to
>>  >  production without checking out and manually modifying before building.
>>  >
>>  >  Is there any easy way to do this in maven or do we have have set the java
>>  >  runtime parameter -Dwicket.configuration=production
>>  >
>>  >  Any suggestion or best practice?
>>  >
>>  >  TIA,
>>  >
>>  >  - Doug
>>  >
>>  >
>>  >  --
>>  >  View this message in context: http://www.nabble.com/OT%3A-Wicket-web.xml-configuration-settings-and-maven-tp15744999p15744999.html
>>  >  Sent from the Wicket - User mailing list archive at Nabble.com.
>>  >
>>  >
>>  >  ---------------------------------------------------------------------
>>  >  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>  >  For additional commands, e-mail: users-help@wicket.apache.org
>>  >
>>  >
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>  For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>   

-- 
-Wicket for love
-Jme for fun

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: OT: Wicket web.xml configuration settings and maven

Posted by James Carman <ja...@carmanconsulting.com>.
On 2/28/08, Igor Vaynberg <ig...@gmail.com> wrote:
> see maven resource filtering

WOW!  I was using the ant plugin to do this!  This will save me
sooooooo much headache.

Thanks, Igor.

>
>
>  -igor
>
>
>
>  On Thu, Feb 28, 2008 at 12:15 PM, Doug Leeper <do...@yahoo.com> wrote:
>  >
>  >  This is slightly off topic but it has todo with our wicket app and utilizing
>  >  maven to create the builds.
>  >
>  >  Maven is new to us and slightly understand the profiling concept in maven
>  >  but not sure how to the following...on our production build, we would like
>  >  to have the web.xml "configuration" setting changed from development to
>  >  production without checking out and manually modifying before building.
>  >
>  >  Is there any easy way to do this in maven or do we have have set the java
>  >  runtime parameter -Dwicket.configuration=production
>  >
>  >  Any suggestion or best practice?
>  >
>  >  TIA,
>  >
>  >  - Doug
>  >
>  >
>  >  --
>  >  View this message in context: http://www.nabble.com/OT%3A-Wicket-web.xml-configuration-settings-and-maven-tp15744999p15744999.html
>  >  Sent from the Wicket - User mailing list archive at Nabble.com.
>  >
>  >
>  >  ---------------------------------------------------------------------
>  >  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>  >  For additional commands, e-mail: users-help@wicket.apache.org
>  >
>  >
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>  For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: OT: Wicket web.xml configuration settings and maven

Posted by Igor Vaynberg <ig...@gmail.com>.
see maven resource filtering

-igor


On Thu, Feb 28, 2008 at 12:15 PM, Doug Leeper <do...@yahoo.com> wrote:
>
>  This is slightly off topic but it has todo with our wicket app and utilizing
>  maven to create the builds.
>
>  Maven is new to us and slightly understand the profiling concept in maven
>  but not sure how to the following...on our production build, we would like
>  to have the web.xml "configuration" setting changed from development to
>  production without checking out and manually modifying before building.
>
>  Is there any easy way to do this in maven or do we have have set the java
>  runtime parameter -Dwicket.configuration=production
>
>  Any suggestion or best practice?
>
>  TIA,
>
>  - Doug
>
>
>  --
>  View this message in context: http://www.nabble.com/OT%3A-Wicket-web.xml-configuration-settings-and-maven-tp15744999p15744999.html
>  Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>  For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org