Request errors and session expiration
4.3. Request Errors and Session Expiration Handling RichFaces lets you redefine the standard handlers responsible for processing exceptions. We recommend defining your own JavaScript, which will be executed when exceptional situations occur. Add the following code to web.xml: org.ajax4jsf.handleViewExpiredOnClient true