-
1. Re: ViewExpiredExpection and login redirection Issue
oneworld95 Oct 1, 2009 4:13 PM (in response to mcohnen)This seems to be a common problem. Even the RichFaces LiveDemo on Exadel throws this error when a session timeout occurs.
-
2. Re: ViewExpiredExpection and login redirection Issue
mcohnen Oct 2, 2009 10:42 AM (in response to mcohnen)The thing is that session has not timed out! Session is set to last over 1 hour, and I only receive this message when I follow the steps I described before. If not, I can use the application without receiving that exception...
Quite strange! Any advice? This thing is driving me nuts! :D
Thank you!
-
3. Re: ViewExpiredExpection and login redirection Issue
mcohnen Oct 2, 2009 12:22 PM (in response to mcohnen)I have been investigating and narrowing the issue. This is what I have so far:
I have a page, flexc.xhtml. In that page I have 2 h:commandLink links as following:
<h:commandLink value="#{messages['Search']}" action="#{flexC.nothing()}"/> <h:commandLink action="#{flexC.redirect}" value="Redirect" />
FlexC is a Conversation scoped bean. The relevant methods are:
public void nothing(){ } public String redirect(){ return "confirm"; }
flexc.page.xml looks like this:
<navigation> <rule if-outcome="confirm"> <redirect view-id="/confirm.xhtml" include-page-params="true"/> </rule> </navigation>
confirm.xhtml has a restriction that only logged users can access it. If you are not logged, it redirects you to the login page. Once you log in, it brings you back to confirm.xhtml. This is what is happening:
- If I enter flexc.seam and click on redirect, I'm redirected to the login page, log in, and then redirected successfully to confirm.xhtml
- If I enter flexc.seam and click on Search Button, the one that calls the empty function in my conversation bean, I'm redirected to the login page, log in, and then the ViewExpiredException is thrown.
- If I change the h:commandButton to s:button, and click it etc... it works! but I don't wanna use s:button, as I want to submit the form!
How can I get rid of this? Pleeeeease ;)
Thanks!