The outjection is tougher than you'd think... The problem is that I have 3 beans that will outject the selectedItem object... I tried it with both the Page scope and the Session scope. Apparently, all 3 of the beans will outject the selectedItem, which means that a random item will get outjected... (in which case I get a NPE).
I tried the stateless/event scope, which doesn't propagate the selectedItem... I also tried the conversation scope which doesn't propagate the selectedItem... FYI : @Stateful | class Bean1 { | @DataModel private List<Item> itemList; | @DataModelSelection("itemList") | @Out(required=false,scope=ScopeType.SESSION) private Item selectedItem; | } | @Stateful | class Bean2 { | @DataModel private List<Item> itemList; | @DataModelSelection("itemList") | @Out(required=false,scope=ScopeType.SESSION) private Item selectedItem; | } | @Scope(ScopeType.SESSION) | class Bean3 { | @DataModel private List<Item> itemList; | @DataModelSelection("itemList") | @Out(required=false,scope=ScopeType.SESSION) private Item selectedItem; | } | | class ReceivingBean { | @In(required=false) private Item selectedItem; | @Begin(nested=true) | public String selectItem() { | } | } | I'd like to know what combination of scope types/annotation type settings will work in the above case... Note : outject in random order is because the BijectionInterceptor is called many times and there is probably not an order in how JBoss AOP calls it... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936068#3936068 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3936068 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user