I don't manage to outject some entity from one sfsb into session context and inject it in the next sfsb.
In the first sfsb I have a Datamodel and :
@DataModelSelection
@Out(scope = ScopeType.SESSION, required=false) @In(create=true)
private Board board;
In a select() method I can verify that the Board instance updates correctly. select() navigates to another page wich also shows up the correct data for the board if I reference it in JSF.
BUT: There is another sfsb used in that page which has
@In @Out(scope=ScopeType.SESSION, required=false)
private Board board;
But in an action method of the second sfsb board is always null! If I try to fetch it programmatically (Contexts.getSessionContext().get("board"), I get the old instance, not the one just selected.
(Both sfsbs are in session context and the Board entity is, too.)
What am i missing about Injection??
Many thanks for help!
I was wrong: The programmatic call to the session variabel results in the correct current Board instance, it is just the injected variable that is null.