Tuesday, January 12, 2016

ViewExpiredException The view state of the page has expired



I was facing below exception when task flows are nested. Loading one task flow within another task flow causes below exception

javax.faces.application.ViewExpiredException: viewId:
The view state of the page has expired.  Reload the page.

Add CLIENT_STATE_MAX_TOKENS in the application web.xml. Make sure the token count is sufficient based on your application.

 
    CLIENT_STATE_MAX_TOKENS
    15