JSF 2.1 : ViewExpiredException : When clicking browser back button : Chrome only -



JSF 2.1 : ViewExpiredException : When clicking browser back button : Chrome only -

i getting 'viewexpiredexception' on click of button, in chrome browser (ie , firefox - no issue). happens when previous view has ajax updates.

load home.xhtml (let's say, javax.faces.viewstate-sequence - 1) do ajax updates on home.xhtml (let's say, javax.faces.viewstate-sequence - 2) prg , go home.xhtml 1 time again (let's say, javax.faces.viewstate-sequence - 3) press chrome button. page loads. (now view having javax.faces.viewstate-sequence - 2 - issue instead of having new sequence id - 4 getting previous sequence id - 2. means page may loading cache. remove previous views server, view sequence id - 2 not present). any click (post back/ajax) shows viewexpiredexception.

note: if step 2 above skipped, there no issue, in following

load home.xhtml (let's say, javax.faces.viewstate-sequence - 1) prg , go home.xhtml 1 time again (let's say, javax.faces.viewstate-sequence - 3) press chrome button page loads. (it having javax.faces.viewstate-sequence - 4 - no issue. means page not loading cache) any click (post back/ajax) - no issue.

please note on myfaces 2.1.8 , using nocachefilter suggested balusc. why ie , firefox has no issues, issue chrome, , when previous view has ajax updates.

any help or pointers prepare problem or first thoughts, much appreciated.

please allow me know if info might have missed , may want know.

update: 6/27/14

in above case, please advice if manually create , build view when restored view returns null during postback, using custom viewhandler. have checked reply question, can post jsf2 page expired session?. not working in setup, , shows blank white page. idea. because using myfaces 2.1.8 , has different implementation of state manager ?

thanks much in advance. best regards, kumar.

just fixed issue. multiple forms in page, each form have hidden input javax.faces.viewstate. when loading page navigation, chrome loading these state input cache, if previous page had ajax calls. prepare auto finish off on forms, , hidden inputs loading fresh instead cache. hope helps in need.

<script> $(function(){ $('form').attr("autocomplete", "off"); }); </script>

google-chrome jsf jsf-2

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -