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

    a4j:poll vs viewstate

    vene.nag

      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