-
1. Re: Really stateless pages - No HTTP Session creation
bravocharlie.seam.signup.benny.me.uk Feb 19, 2009 3:38 PM (in response to grandon)
Still I'm not sure if this belongs directly to Seam, because afaik the servlet container just notifies Seam when a session is opened / closed.You are quite right. And first place the session is accessed is Seam's IdentityRequestWrapper.
public IdentityRequestWrapper(HttpServletRequest request) { super(request); identity = (Identity) request.getSession(). getAttribute(Seam.getComponentName(Identity.class)); }
This can either be disabled in components.xml
<web:identity-filter disabled="true" />
Or you could patch it so it does request.getSession(false)
I've not really used this to solve the ViewExpiredException issues, more to create stateless resources. You may find with no session (no session = expired session?) you still get a ViewExpiredException.
-
2. Re: Really stateless pages - No HTTP Session creation
grandon Feb 19, 2009 4:15 PM (in response to grandon)Hi Ben,
Thank you for the response!
I need to check the correspondig class.
Patching it won't solve all the issues I guess, because when I would change getSession not to create a session if it don't exists I can't realize having an entry or home page (no session) together with other pages where I need the session.Still, thank you for the hint and I will have a look at it.
I've not really used this to solve the ViewExpiredException issues, more to create stateless resources. You may find with no session (no session = expired session?) you still get a ViewExpiredException.The ViewExpiredException was the effect, but I thought that the creation of the session is the cause.
no session = expired session would mean that it is NOT possible to achieve what I'm trying to do.Regards!
-
3. Re: Really stateless pages - No HTTP Session creation
waacow Apr 14, 2009 8:51 PM (in response to grandon)We are having this exact same issue - still haven't found a seam solution.
We are planning to use a workaround by using a JSP page for the page doesn't require a http session. Hopefully JSP and Seam play nice together.