Maybe I am a bit thick here but I still don't get why a setter should be
needed. If the datamodel is page scoped I would expect it to go back into page
context (= Contexts.getPageContext().set("name", dataModel)) after
deserialization. What sense does it make to reinject it into the action bean
even if that particular action bean is not called in a second request.
I always thought that @DataModel works pretty much like @Factory: Once a
datamodel is created it becomes a completly independent, fist-class component.
The difference is of course that @Factory is called automatically and
@DataModel is only used if the annotated bean is called.
Regards
Felix
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078522#4078522
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078522
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user