This content has been marked as final.
Show 1 reply
-
1. Re: Storing Items in a Conversation
niox.nikospara.yahoo.com Jun 21, 2009 1:14 PM (in response to oyesiji77)Is there any particular reason why to inject the Conversation itself and not use it as recommended:
@Name("foo") @Scope(ScopeType.CONVERSATION) class Foo { @Out YourBean yourBean; } // OR @Name("bar") class Bar { @Out(scope=ScopeType.CONVERSATION) YourBean yourBean; }
There are more details in Chapter 4 of the docs and in the examples.
If however you insist on using the conversation programmatically, check out the class org.jboss.seam.contexts.Contexts and the interface org.jboss.seam.contexts.Context.