Re: ViewExpiredException, but session hasn't timed out

2014-04-10 Thread Felipe Jaekel
It's necessary to have a slow internet connection to reproduce this, so I can't test locally. While the page is loading the user hits a command button. As the page is still loading, I guess the view state is not created yet, so viewHandler.restoreView(facesContext, viewId) returns null. Thanks for

Re: ViewExpiredException, but session hasn't timed out

2014-04-10 Thread Leonardo Uribe
Hi I see, now I get it. By default MyFaces always renders the view state field at the form end. To solve your problem, you need to render it at the beginning of the form. JSF spec javadoc for h:form says this: "... Call ViewHandler.writeState() before the the close of the "form" element. Render

Re: ViewExpiredException, but session hasn't timed out

2014-04-10 Thread Felipe Jaekel
Done: https://issues.apache.org/jira/browse/MYFACES-3880 Thanks 2014-04-10 12:16 GMT-03:00 Leonardo Uribe : > Hi > > I see, now I get it. By default MyFaces always renders the view state > field at the form end. To solve your problem, you need to render it at > the beginning of the form. > > JS