1 Reply Latest reply on Jul 11, 2014 7:57 AM by liuliu

    Richfaces 5 - r:poll session issue

    cohencyr4

      Hello,

       

      I use Richfaces 5 and I am rendering automatically a table every 500 ms by using the tag "r:poll" as followed:

      <r:poll id="poll" interval="500" enabled="true" render="mytable" />

       

      If I restart my server (tomcat), it keeps trying refreshing the table but since there is no more session the table is not refreshed but in the server I see every 500ms the following exception:

       

      Jul 08, 2014 3:23:04 PM com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError

      SEVERE: javax.faces.application.ViewExpiredException: viewId:/user/clientaccountdetails.xhtml - View /user/clientaccountdetails.xhtml could not be restored.

        at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:210)

      ...

       

      How can I handle the error in the client side to redirect to another page or displaying an error message and stop the polling?

       

      Thank you