Hello,

In my app I need to access a certain property (application.url) from Wicket
page as well as Quartz background threads. Is there a way to make
properties/resources loaded by Spring accessible through Wicket
StringResourceModel?

Thanks,

Alec

On Mon, Aug 9, 2010 at 4:46 PM, Alec Swan <alecs...@gmail.com> wrote:

> James, I am not using maven. Any other ideas?
>
>
> On Mon, Aug 9, 2010 at 4:09 PM, James Carman 
> <ja...@carmanconsulting.com>wrote:
>
>> If you're using Maven, you can do something similar to what I've done
>> in my advanced wicket application.
>>
>> http://svn.carmanconsulting.com/public/wicket-advanced/trunk/
>>
>>
>> On Mon, Aug 9, 2010 at 4:57 PM, Alec Swan <alecs...@gmail.com> wrote:
>> > Hello,
>> >
>> > I am using Wicket 1.4.5 and I need to read a property from my
>> application
>> > resource file from a Quartz background thread which is scheduled to
>> execute
>> > periodically. When I use StringResourceModel from the background thread
>> I
>> > get an exception saying "There is no application attached to current
>> > thread", which makes sense. How can I read app property from a
>> background
>> > thread?
>> >
>> > Also, I deploy my Wicket app to dev and production server and I would
>> like
>> > to have different app properties without touching the files checked out
>> from
>> > SVN. What's the best way to accomplish this? Can I configure Wicket to
>> load
>> > properties from a specific file, e.g. /etc/MyWicketApp.properties?
>> >
>> > Thanks,
>> >
>> > Alec
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

Reply via email to