sure that i can, but i need to store the info in the session, which doesnt
exist yet, and dont want to compromise the abstraction wicket provides by
using HttpSession..and hence relying/using the same wherever i need it. 


igor.vaynberg wrote:
> 
> use session.exists() to test if the session is there or not
> 
> -igor
> 
> 
> On Mon, Apr 14, 2008 at 11:34 PM, mfs <[EMAIL PROTECTED]> wrote:
>>
>>  Guys,
>>
>>  Re-posting this with un-necessory info taken out..
>>
>>  I have a non-wicket Filter which is intercepting all request to my
>>  wicket-app. In the filter i would want to set some attributes to my
>> wicket
>>  WebSession.
>>
>>  Now the problem is that for the first request to the application
>>  (intercepted by the filter), the wicket session is yet not created, and
>>  hence i get this error "you can only locate or create sessions in the
>>  context of a request cycle" on doing a Session.get(). Let me add that am
>>  already using WicketSessionFilter which is exposing the WebSession to my
>>  non-wicket Filter. The problem would be just for the first request,
>> whereas
>>  all subsequent request should work.
>>
>>  Any suggestion/work-arounds ?
>>
>>  Thanks in advance
>>
>>  --
>>  View this message in context:
>> http://www.nabble.com/Accesing-Wicket-Session-from-a-non-wicket-filter---Suggestions-tp16695949p16695949.html
>>  Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>>  ---------------------------------------------------------------------
>>  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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Accesing-Wicket-Session-from-a-non-wicket-filter---Suggestions-tp16695949p16703397.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to