0 Replies Latest reply on Oct 13, 2014 9:49 AM by nag veni

    a4j:poll vs viewstate

    nag veni Newbie

      Hi,

       

      We are using a4j:poll as below but randomly this a4j:poll posting the ajax request with previous url and previous view state.

       

      <h:form id="sessionCheckFormId">

             <a4j:poll limitRender="true" render="poll" id="poll"

                  interval="#{signInMessageHandler.sessionTimeOutSec}"

                  enabled="#{signInMessageHandler.enablePooling}"

                  action="#{signInMessageHandler.forwardToLoginIfSessionEnded}"

                  oncomplete="if (#{signInMessageHandler.showSessionTimeOutWarning}) {#{rich:component('sessionAboutEndWarning')}.show();}" />

        </h:form>

      <h:form>

           //main page content

      </h:form>

       

      Can you please let us know to avoid this problem?

       

      Regards,

      Nagarjun