Hi!
I am using MyFaces+RichFaces+Orchestra

When I update from Orchestra 1.0 to 1.1, I am getting
javax.faces.application.ViewExpiredException: /pages/dms/dms_overview.jsfThe
expected view was not returned for the view identifier:
/pages/dms/dms_overview.jsf
I guess you are using MyFaces 1.2.x or JSF 1.2.x.

This is the "normal" problem you'll experience when the session times out. I don't see how Orchestra 1.0 did help to solve that problem. Probably you changed the JSF version lately? If I remember correctly previous JSF versions just re-rendered the page.

Anyway, if possible use the a4j poller which helps keeping the session alive as long as the user is on the page. This allows you to use a very short session timeout, but keeping it alive as long as the user did not close the browser or left your web application at all.

Something like this will do the trick:

   <a4j:region renderRegionOnly="true">
       <h:form id="_pingForm">
           <a4j:poll id="ajaxPoller"
                     interval="10000"
                     reRender="ajaxPollerResult,ajaxPollerCounter"
                     action="#{ping.pollAction}"
                     timeout="10000"/>
       </h:form>
   </a4j:region>

And gives another piece of real rich-client feeling :-)


Ciao,
Mario

Reply via email to