Ah, that's the secret missing link. I then suggest to have a method getSessionKey(String wicketFilterName) which is used by the "normal" WicketFilter to read/write and the WicketSessionFilter to read the WebSession.

Thanks, Eelco!

--
Cheers,
Tom


Eelco Hillenius wrote:
No, my confusion is about how it comes into the HttpSession accessible under
the attribute name which is build only in WicketSessionFilter (aren't the
HttpSession's attributes not a simple string-to-object map so you need the
right key to get the value?).

That's why you need to provide the filterName argument when setting up
the filter. The filtername is used as the key by the actual Wicket
application, so if you set the filterName to the name of the filter
you want to get the session from, the two keys match.

Eelco

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to