我在PrimeFaces应用程序中测试JSF 2.2 Faces流,当我用p:按钮替换h:按钮时,链接停止工作。 在JSF 2.2中,您可以指定例如"结果"中的flow_id。一个h:按钮。这似乎不适用于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操作中包含flow id时,我也有其他例外,它在h:commandButton中工作。
感谢。
编辑:我使用PF版本5.2.6。