JavaServer Faces page fails when you pass a URL parameter

转载自: http://www-01.ibm.com/support/docview.wss?uid=swg21318188
WebSphere Application Server​

1、Problem(Abstract)
When you attempt to pass a URL parameter, a JavaServer Faces (JSF) page fails. 
 
2、Symptom
When this issue occurs, you might see error messages that are similar to the following text in your log files:
0000002b lifecycle     E   
JSF1054: (Phase ID: RESTORE_VIEW 1, View ID: "") 
Exception thrown during phase execution:
javax.faces.event.PhaseEvent[source=
com.sun.faces.lifecycle.LifecycleImpl@6bd36bd3]

0000002b servlet       
E com.ibm.ws.webcontainer.servlet.ServletWrapper service 
SRVE0068E: Uncaught exception created in one of 
the service methods of the servlet Faces Servlet in 
application application_name. 
Exception created: javax.servlet.ServletException: viewId:/
updater.faces - View /updater.faces could not be restored. 


3、Cause
The behavior of the RestoreView method has changed from the Sun Microsystems JavaServer Faces reference implementation Version 1.1 to 1.2. 

4、Resolving the problem
Add the following context parameter to your application:
<context-param>
    <param-name>com.sun.faces.enableRestoreView11Compatibility</param-name>
    <param-value>true</param-value>
</context-param>  
 

5、Related information
Release notes for Version 7.0

6、Cross Reference information
Segment Product Component Platform Version Edition
Application Servers WebSphere Application Server for z/OS Java SDK z/OS 7.0

你可能感兴趣的:(servlet,JSF,IBM,OS,websphere)