我为注册过程实现了一个人脸流程,但是当我使用@FlowScoped 注释 bean“CreateBn”时出现此错误,并且当我使用 CDI: SessionScoped 时,它可以工作:
2014-09-01T10:47:58.010+0000|Avertissement: JSF1063 : AVERTISSEMENT ! D�finition d�une valeur
d�attribut non-s�rialisable dans HttpSession (cl� : 0d4116bdc7f306730f3ea26b84ab:0_flowStack, classe de la valeur : com.sun.faces.flow.FlowHandlerImpl$FlowDeque).
2014-09-01T10:47:58.013+0000|Grave: Error Rendering View[/inscription/inscription.xhtml]
javax.el.ELException: /inscription/inscription.xhtml @12,60 value="#{createBn.user.email}": org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.faces.flow.FlowScoped
at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:114)
at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)
这是豆子:
@Named
@FlowScoped("inscription")
public class CreateBn implements Serializable{
private static final long serialVersionUID = 1L;
private static final String INSCRIPTION_RETURN = "inscription_return";
private User user;
...
而且我确定没有文件命名错误:流文件夹,xxx-flow.xml,xxx-return.xhtml。请帮忙