I see similar problem before. You need a @Factory on the call to initialize
@DataModel list. There's no other way. I spent couple days trying to figure
that out with the help of Pete.
Check out the link
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=114929
but here's short answer
| @Name("applicationHome")
| public class ApplicationHome extends EntityHome<Application>
| {
| ...
| @DataModel
| private List<Personnel> personnels;
|
| @Factory("personnels")
| public void fillPersonnels()
| {
| if (personnels == null)
| personnels = getInstance() == null ? null : new
ArrayList<Personnel>(getInstance().getPersonnels());
| }
|
| @DataModelSelection
| private Personnel personnel;
|
| @Logger Log log;
|
| public void selectPersonnel()
| {
| if (personnel == null) log.info("personnel is null");
| else log.info("you have selected personnel " +
personnel.getName());
| }
| }
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070299#4070299
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070299
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user