jsf - ViewState lost after AJAX request -


i have strange error following code:

<h:form id="myform">     <h:panelgroup id="mypanelgroup">      ...        <h:commandbutton             value="randomtext"              action="#{mybean.action}" tabindex="301"                     <f:ajax execute=":mypanelgroup" render=":messages @form"/>        </h:commandbutton>        </h:panelgroup>     ... </h:form> 

so problem after click on button form (myform) looses viewstate after render. strange in dev env working, on other server not. have made common mistake kind of execute/render pair settings or else cause such problem? wondering 2 servers have different mojarra version or that.

the messages in render attribute id of panelgroup in other form.

the container weblogic server jsf 2.1.

any ideas?

thanks!

so found out common jsf issue can solved following library:

http://showcase.omnifaces.org/scripts/fixviewstate

more info: http://balusc.blogspot.hu/2011/09/communication-in-jsf-20.html#ajaxrenderingofcontentwhichcontainsanotherform


Comments

Popular posts from this blog

javascript - IndexedDB error: Uncaught DataCloneError: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned -

amazon web services - When using Cognito credentials with AWS in a browser (javascript), keep getting "missing credentials" error -

c# - How to set the datatextfield value instead of the value on a drop down list? -