Icefaces user session expired popup

(Last Updated On: August 11, 2016)

Icefaces user session expired popup:

Icefaces user session expired popup issue has been resolved after adding the below entries in the deployment descriptors (web.xml),

The below one will redirect you to the ERRORPAGE.jsp onclick of any button after session timeout,

<context-param>
<param-name>org.icefaces.sessionExpiredRedirectURI</param-name>
<param-value>/ERRORPAGE.jsp</param-value>
</context-param>

But ensure you have added this entry too,

<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/ERRORPAGE.jsp</location>
</error-page>

If you want to redirect to ERRORPAGE.jsp after the session timeout automatically, then have to add the below code to web.xml (deployment descriptor)

<context-param>
<param-name>org.icefaces.strictSessionTimeout</param-name>
<param-value>true</param-value>
</context-param>

Try changing org.icefaces.strictSessionTimeout to com.icefaces.strictSessionTimeout, if the above solutions did not work. This will vary based on the icefaces versions.

Thanks for reading this post……..!!!

330 total views, 0 views today

Leave a Reply

Your email address will not be published. Required fields are marked *