For those of you folowing this saga, I have a hypothesis to explain the problem 
(take it with a grain of salt, though, since I'm a JSF/Seam newbie).  In the 
original issues app, the injection of the data model selection is being done 
from within an Action event, during a phase in which the view containing the 
datamodel is active, and so the selection exists.  In the modified app, any 
injection that happens is being done in the render phase of the new view, and 
the data model (and its selection) is long gone.  The value returned by 
getSelectedIssue is whatever was last injected.

So the moral of my story (if I'm not completely wrong in the above analysis) is 
that if I want the data model selection from a view, I must call an action that 
either a) is in the component containing the @DataModelSelection annotation, or 
b) makes a call to a method in that component.

It seems clear that it must be that way, now that I know the answer.  Sigh.  
Eventually I'll understand this enough to stop hurting myself.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966243#3966243

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966243
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to