我正在尝试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-page:
<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严重缺乏?
发布于 2019-02-14 19:50:59
呃..。在另一个浏览器(Safari)中测试后,它可以工作。硬重置Chrome站点存储,然后修复了原始问题。
这个问题一定是在自动重启之间的某个地方浮出水面的。
https://stackoverflow.com/questions/54687659
复制相似问题