-
1. Re: Here is how to fix view timed out on login page!!!
herberson Jul 12, 2010 10:52 PM (in response to deanhiller2000)Hi, it works?
Herberson
-
2. Re: Here is how to fix view timed out on login page!!!
deanhiller2000 Jul 13, 2010 8:34 AM (in response to deanhiller2000)I thought I had it working at some point.(I thought). It has been way too long. That flag which there is not much info is supposed to build the view if it doesn't exist so users don't get a viewtimeoutexception on pages that don't really need session data.
later,
Dean -
3. Re: Here is how to fix view timed out on login page!!!
amitev Jul 13, 2010 9:15 AM (in response to deanhiller2000)I use a javascript timer that redirects the browser to the login page on session timeout. Of course i reset the timer on ajax request.
-
4. Re: Here is how to fix view timed out on login page!!!
deanhiller2000 Jul 13, 2010 9:25 AM (in response to deanhiller2000)So anyone that happens to be on the login page, there is code that keeps his session alive forever defeating the purpose of sessions kind of. ie. That doesn't feel right to me. I read something on the seam website about timing out and sending to a non-form page which works well as the session is reclaimed and the user won't see viewtimeout at all....they just have to click login again. I did like that solution a little better.....ideally though, JSF sometime along with facelets should fix this to be able to post a form even if it no longer has the page model in memory. I have seen alot of code on the net regarding this....some even did the login page outside of JSF just so they could make it perfect(and not keep sessions alive which is not the best thing to do.....it may not matter for one page, but it is still wasting resources).
-
5. Re: Here is how to fix view timed out on login page!!!
herberson Jul 13, 2010 11:05 AM (in response to deanhiller2000)It works!
Dean Hiller wrote on May 24, 2010 05:12:<context-param> <param-name>facelets.BUILD_BEFORE_RESTORE</param-name> <param-value>true</param-value> </context-param> <context-param> <param-name>facelets.RECREATE_VALUE_EXPRESSION_ON_BUILD_BEFORE_RESTORE</param-name> <param-value>true</param-value> </context-param>
Herberson
-
6. Re: Here is how to fix view timed out on login page!!!
deanhiller2000 Jul 13, 2010 11:13 AM (in response to deanhiller2000)yes, but I thought I ended up with other problems in testing as it seemed to screw with other pages or something. I can't quite remember and never fully got to QA so maybe I am just making a mistake there and should go back and retry this setting.
-
7. Re: Here is how to fix view timed out on login page!!!
deanhiller2000 Aug 12, 2010 12:25 AM (in response to deanhiller2000)Heberson,
I finally got back to trying that and it did break other stuff. I had a long running 2 page conversation and ajax with s:decorate and the post now loses the conversation id after I changed my web.xml file. I did not add the RECREATEVALUEEXPRESSIONONBUILDBEFORERESTORE but only did the BUILDBEFORERESTORE. I don't think that is it. Are you having any problems with long running conversations?thanks,
Dean