Thanks, Erik, that code would do the trick, too. I've implemented
a different workaround, though. In the next release of wicket (1.4.8),
WicketSessionFilter will 'expose' both the session and the application, Igor
already resolved my JIRA Issue [1]. BTW: Thanks to Igor for picking that
up so quickly!

cheers,
Jonas


[1] https://issues.apache.org/jira/browse/WICKET-2778

On Tue, Mar 16, 2010 at 9:05 PM, Erik van Oosten <e.vanoos...@grons.nl> wrote:
> Hi Jonas,
>
> Perhaps this is what you need:
> http://cwiki.apache.org/WICKET/springbean-outside-wicket.html
>
> Regards,
>   Erik.
>
>
> Jonas wrote:
>>
>> Hi all,
>>
>> we're using WicketSessionFilter in our product to access
>> our custom WebSession, which works fine. Now we've tried
>> to also access the org.apache.wicket.Application (e.g. using
>> Session#getApplication or Application#get), which doesn't seem
>> to work, because the application isn't bound to the ThreadLocal.
>> After searching in nabble I found some old threads ([1], [2]) suggesting
>> this should actually work fine, but that doesn't seem to be the case.
>> Is there any special configuration trick I have to apply to make this
>> work, or are those old posts just (no longer) true?
>> If anybody could confirm this is actually a bug, I'd create an issue
>> in JIRA to have this fixed.
>>
>> Regards,
>> Jonas
>>
>> [1]
>> http://old.nabble.com/Accessing-Wicket-Application-from-custom-servlet-ts24814177.html#a24815786
>> [2] http://old.nabble.com/WicketFilter-td25205475.html#a25210469
>>
>
> --
> Sent from my SMTP compliant software
> Erik van Oosten
> http://day-to-day-stuff.blogspot.com/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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

Reply via email to