关于开放自由的 JSF 2.3。立即 javax.faces.application.ViewExpiredException
JSF 2.3 on open liberty. Immediate javax.faces.application.ViewExpiredException
我正在试验 Open Liberty 并想试用 JSF-2.3 支持。我一定是在做一些愚蠢的事情,因为在尝试隐式导航时我立即得到异常:
javax.faces.application.ViewExpiredException: View "/view/index.xhtml" could not be restored.
at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:181)
我可以使用以下 server.xml 功能呈现初始 Facelets 页面:
<featureManager>
<feature>servlet-4.0</feature>
<feature>jsf-2.3</feature>
<feature>el-3.0</feature>
<feature>cdi-2.0</feature>
<feature>jsp-2.3</feature>
</featureManager>
我的页面非常简单,看起来像这样:
<h:body>
<h:outputText value="It works!"/>
<br/>
<h:form>
<h:commandLink value="NAvigate" action="view/page2" />
<h:commandButton value="NAvigate 2" action="view/page2" />
</h:form>
</h:body>
我有对应的page2.xhtml
.
单击 commandLink 或 commandButton 时出现异常:
javax.faces.application.ViewExpiredException: View "/view/index.xhtml" could not be restored.
at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:181)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:195)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:142)
我是否在 Open Liberty 中配置错误或者我的 JSF-mojo 严重缺乏?
呃..在另一个浏览器(Safari)中测试后它工作了。硬重置 Chrome 站点存储然后解决了原始问题。
这个问题一定是在自动重启之间的某处出现的。
我正在试验 Open Liberty 并想试用 JSF-2.3 支持。我一定是在做一些愚蠢的事情,因为在尝试隐式导航时我立即得到异常:
javax.faces.application.ViewExpiredException: View "/view/index.xhtml" could not be restored.
at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:181)
我可以使用以下 server.xml 功能呈现初始 Facelets 页面:
<featureManager>
<feature>servlet-4.0</feature>
<feature>jsf-2.3</feature>
<feature>el-3.0</feature>
<feature>cdi-2.0</feature>
<feature>jsp-2.3</feature>
</featureManager>
我的页面非常简单,看起来像这样:
<h:body>
<h:outputText value="It works!"/>
<br/>
<h:form>
<h:commandLink value="NAvigate" action="view/page2" />
<h:commandButton value="NAvigate 2" action="view/page2" />
</h:form>
</h:body>
我有对应的page2.xhtml
.
单击 commandLink 或 commandButton 时出现异常:
javax.faces.application.ViewExpiredException: View "/view/index.xhtml" could not be restored.
at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:181)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:195)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:142)
我是否在 Open Liberty 中配置错误或者我的 JSF-mojo 严重缺乏?
呃..在另一个浏览器(Safari)中测试后它工作了。硬重置 Chrome 站点存储然后解决了原始问题。
这个问题一定是在自动重启之间的某处出现的。