This content has been marked as final.
Show 3 replies
-
1. Re: scope of a user when registering
niox.nikospara.yahoo.com Jul 7, 2009 7:17 PM (in response to juanvinuales)Hello,
Check out section
Components with multiple roles
of chapter 4The contextual component model
in the documentation. It describes a similar case to yours. (For Seam 2.1.1 it is section 4.2.9.) -
2. Re: scope of a user when registering
juanvinuales Jul 7, 2009 9:32 PM (in response to juanvinuales)thank you so much for your response, i'm gonna check it out right now
-
3. Re: scope of a user when registering
juanvinuales Jul 7, 2009 10:06 PM (in response to juanvinuales)This solved my problem,
that chapter was exactly my case,i have done something like:
@Entity @Scope(SESSION) @Name("usuario") @Role(name="nuevoUsuario", scope=CONVERSATION) public class Usuario ... { ... }
and then using this
nuevoUsuario
variable as the component name for the registering pages, and injecting it through:
@In @Out private Usuario nuevoUsuario;
thanks!