Change your getPersonnels method into a void factory method.  Since you are 
outjecting your DataModel, you don't need to tie it a getter

 <h:dataTable var="personnel" value="#{personnels}">
  |   <h:column>
  |       <f:facet name="header">action</f:facet>
  |        <s:link value="Select" action="#{applicationHome.selectPersonnel}"/>
  |   </h:column>
  | </h:dataTable>

@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
  |     @Out(required = false)
  |     private Personnel personnel;
  | 
  |         @Logger Log log;
  | 
  |        public void selectPersonnel() 
  |       {
  |          if (personnel == null) log.info("always null here");
  |       }
  | }
  |     

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

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

Reply via email to