关于开放自由的JSF 2.3。立即javax.faces.application.ViewExpiredException

问题描述 投票:0回答:1

我正在试验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是否严重缺乏?

jsf jsf-2.3 open-liberty
1个回答
0
投票

呃..在另一个浏览器(Safari)测试后,它工作。硬重置Chrome网站存储然后解决了原始问题。

此问题必须在自动重启之间的某处浮出水面。

© www.soinside.com 2019 - 2024. All rights reserved.