Re: Interpolating variables inside web.xml

2013-04-20 Thread Dan Retzlaff
No, sorry. I'm familiar with Spring's PropertyPlaceholderConfigurer, but
that only pulls properties into context definitions. The deployment
descriptor lives outside of that, so that approach does not make sense to
me.


On Sat, Apr 20, 2013 at 5:30 AM, Leonardo D'Alimonte <
leonardo.dalimo...@loginet.it> wrote:

> Actually we have another WebApplication integrated with Spring where used
> successfully this interpolation mechanism, unfortunately I can't find the
> exact place where this behaviour is coded inside the webapp.
>
> Do you have any idea where i can look inside the xml's configuration?
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Interpolating-variables-inside-web-xml-tp4658095p4658139.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Interpolating variables inside web.xml

2013-04-20 Thread Leonardo D'Alimonte
Actually we have another WebApplication integrated with Spring where used
successfully this interpolation mechanism, unfortunately I can't find the
exact place where this behaviour is coded inside the webapp.

Do you have any idea where i can look inside the xml's configuration?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Interpolating-variables-inside-web-xml-tp4658095p4658139.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Interpolating variables inside web.xml

2013-04-19 Thread Dan Retzlaff
Oops, premature send. :)

No, I don't think it can interpolate a deployment descriptor. I'd look into
specifying a custom application factory that uses whatever strategy you
want. See WicketFilter for details. I haven't used Spring for web stuff in
years. With Guice it's easy to use a custom WicketFilter subclass that
instantiates the app through the injector, and does whatever configuration
you need. This is described here:
http://software.danielwatrous.com/wicket-guice-including-unittests/ I'd
guess that Spring provides a similar capability.


On Fri, Apr 19, 2013 at 10:44 AM, Dan Retzlaff  wrote:

> No, I don'It can't interpolate a deployment descriptor.
>
>
> On Fri, Apr 19, 2013 at 1:17 AM, Leonardo D'Alimonte <
> leonardo.dalimo...@loginet.it> wrote:
>
>> Hey Dan,
>>
>> Maven War plugin is working fine as you suggested, it interpolates the
>> ${wicket.configuration} variable correctly.
>> I would like to see the same magic also when I launch the mvn jetty:run
>> command, so that using maven profiles i can change the configuration of
>> Wicket (6.6.0) when I run my WebApplication for testing or whatever.
>>
>> May the Spring framework be also responsable for the interpolation?
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/Interpolating-variables-inside-web-xml-tp4658095p4658106.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>


Re: Interpolating variables inside web.xml

2013-04-19 Thread Dan Retzlaff
No, I don'It can't interpolate a deployment descriptor.


On Fri, Apr 19, 2013 at 1:17 AM, Leonardo D'Alimonte <
leonardo.dalimo...@loginet.it> wrote:

> Hey Dan,
>
> Maven War plugin is working fine as you suggested, it interpolates the
> ${wicket.configuration} variable correctly.
> I would like to see the same magic also when I launch the mvn jetty:run
> command, so that using maven profiles i can change the configuration of
> Wicket (6.6.0) when I run my WebApplication for testing or whatever.
>
> May the Spring framework be also responsable for the interpolation?
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Interpolating-variables-inside-web-xml-tp4658095p4658106.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Interpolating variables inside web.xml

2013-04-19 Thread Leonardo D'Alimonte
Hey Dan,

Maven War plugin is working fine as you suggested, it interpolates the
${wicket.configuration} variable correctly.
I would like to see the same magic also when I launch the mvn jetty:run
command, so that using maven profiles i can change the configuration of
Wicket (6.6.0) when I run my WebApplication for testing or whatever.

May the Spring framework be also responsable for the interpolation?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Interpolating-variables-inside-web-xml-tp4658095p4658106.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Interpolating variables inside web.xml

2013-04-18 Thread Maxim Solodovnik
Hello,

I'm using ant:
https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp/build.xml

copy ant task with

do the job


On Thu, Apr 18, 2013 at 11:23 PM, Leonardo D'Alimonte <
leonardo.dalimo...@loginet.it> wrote:

> Hi everybody,
>
> I'm trying to set the "wicket.configuration" property inside web.xml of my
> new WebApplication.
> The way I'm trying this is interpolating a ${wicket.configuration} variable
> with this snippet:
> ..
> 
> configuration
> ${wicket.configuration}
> 
> ...
>
> from a property of a  written inside the pom.xml of the project
> ..
> 
> release
> deployment
> .
>
> Unfortunately it's still not working, I've tried many solutions but without
> success...
>
> Do you have any ideas...suggestionsspellspotions?
>
> Thanks in advance.
>
> Leonardo
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Interpolating-variables-inside-web-xml-tp4658095.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
WBR
Maxim aka solomax


Re: Interpolating variables inside web.xml

2013-04-18 Thread Dan Retzlaff
If you're using maven-war-plugin, you probably need to enable filtering of
deployment descriptors.
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#filteringDeploymentDescriptors


On Thu, Apr 18, 2013 at 9:23 AM, Leonardo D'Alimonte <
leonardo.dalimo...@loginet.it> wrote:

> Hi everybody,
>
> I'm trying to set the "wicket.configuration" property inside web.xml of my
> new WebApplication.
> The way I'm trying this is interpolating a ${wicket.configuration} variable
> with this snippet:
> ..
> 
> configuration
> ${wicket.configuration}
> 
> ...
>
> from a property of a  written inside the pom.xml of the project
> ..
> 
> release
> deployment
> .
>
> Unfortunately it's still not working, I've tried many solutions but without
> success...
>
> Do you have any ideas...suggestionsspellspotions?
>
> Thanks in advance.
>
> Leonardo
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Interpolating-variables-inside-web-xml-tp4658095.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Interpolating variables inside web.xml

2013-04-18 Thread Leonardo D'Alimonte
Hi everybody,

I'm trying to set the "wicket.configuration" property inside web.xml of my
new WebApplication.
The way I'm trying this is interpolating a ${wicket.configuration} variable
with this snippet:
..

configuration
${wicket.configuration}

...

from a property of a  written inside the pom.xml of the project
..

release
deployment
.

Unfortunately it's still not working, I've tried many solutions but without
success...

Do you have any ideas...suggestionsspellspotions?

Thanks in advance.

Leonardo



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Interpolating-variables-inside-web-xml-tp4658095.html
Sent from the Users forum mailing list archive at Nabble.com.

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