1

我正在 PrimeFaces 应用程序中测试 JSF 2.2 Faces 流,当我用 p:button 替换 h:button 时,链接停止工作。例如,在 JSF 2.2 中,您可以在 ah:button 的“结果”中指定 flow_id。这似乎不适用于 PF 。我得到的例外是:

[ERROR   ] SRVE0315E: An exception occurred: java.lang.Throwable: javax.servlet.ServletException: WELD-001303: No active contexts for scope type javax.faces.flow.FlowScoped
   at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4898)
   at [internal classes]
Caused by: javax.servlet.ServletException: WELD-001303: No active contexts for scope type javax.faces.flow.FlowScoped
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:230)
   at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1285)
   at [internal classes]
   at com.servengine.servlet.EncodingFilter.doFilter(EncodingFilter.java:44)
   at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:207)
   at [internal classes]
   at com.servengine.servlet.ServengineWebFilter.doFilter(ServengineWebFilter.java:136)
   at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:207)
   ... 1 more
Caused by: org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type javax.faces.flow.FlowScoped
   at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:708)
   ... 7 more

在 p:commandButton 操作中包含流 ID 时,我也遇到了其他异常,这些操作在 h:commandButton 中工作。

谢谢。

编辑:我使用的是 PF 5.2.6 版。

4

0 回答 0