I implement a faces flow for a registration process, but I get this error when I annotate the bean "CreateBn" with @FlowScoped, and when I use CDI: SessionScoped it works:
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)
and here is the bean:
@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;
...
and I'm sure that there is no file naming error: flow folder, xxx-flow.xml, xxx-return.xhtml. Help please