我最近使用 openshift 上传了我的第一个 JSF 站点。
我的 JSF 网站上有一个命令按钮,如下所示:
<h:commandButton id="submitProduct3" image="images/vouchericon.png"
action="#{UserBean.clearInfo()}" value="product1" />
与 bean 相关联:
public String clearInfo()
{
String pageReturn = "inputForm";
this.firstName = null;
this.lastName = null;
this.addressLine1 = null;
this.addressLine2 = null;
this.city = null;
this.county = null;
this.country = null;
this.postCode = null;
this.email = null;
this.paypalEmail = null;
this.voucherCode = null;
return pageReturn;
}
这在我的本地主机上的 IE、Firefox 和 Chrome 以及 openshift 上的 Firefox 和 Chrome 中都可以正常工作,但是当我在网站上线后单击 IE 上的按钮时,我收到以下错误:
An Error Occurred:
viewId:/tabletsHome.xhtml - View /tabletsHome.xhtml could not be restored.
+- Stack Trace
javax.faces.application.ViewExpiredException: viewId:/tabletsHome.xhtml - View /tabletsHome.xhtml could not be restored.
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:205)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:154)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
at java.lang.Thread.run(Thread.java:679)
请帮忙!
谢谢