You have to add the com.sun.faces.enableRestoreView11Compatibility param-name and the javax.faces.application.ViewExpiredException exception-type to the web.xml:
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
</web-app>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
...
....
<context-param>
<param-name>com.sun.faces.enableRestoreView11Compatibility</param-name>
<param-value>true</param-value>
</context-param>
...
...
...
...
<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/faces/Login/Login.xhtml</location>
</error-page>
<context-param>
<param-name>com.sun.faces.enableRestoreView11Compatibility</param-name>
<param-value>true</param-value>
</context-param>
...
...
...
...
<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/faces/Login/Login.xhtml</location>
</error-page>
...
...</web-app>
Reference:
http://mariosgaee.blogspot.com/2009/12/glassfish-and-adf-faces.html
No comments:
Post a Comment