I've been trying and trying but cannot do a simple thing like this:

  |  <h:dataTable var="personnel" value="#{applicationHome.personnels}">
  |   <h:column>
  |       <f:facet name="header">action</f:facet>
  |        <s:link value="Select" action="#{applicationHome.selectPersonnel}"/>
  |   </h:column>
  | </h:dataTable>
  | 
where applicationHome is generated by Seam-gen and modified a bit

  | @Name("applicationHome")
  | public class ApplicationHome extends EntityHome<Application>
  | {
  | ...
  |     @DataModel
  |     private List<Personnel> personnels;
  |     public List<Personnel> getPersonnels()
  |     {
  |             if (personnels == null)
  |                     personnels = getInstance() == null ? null : new 
ArrayList<Personnel>(getInstance().getPersonnels());
  |             return personnels;
  |     }
  |     @DataModelSelection
  |     @Out(required = false)
  |     private Personnel personnel;
  |         @Logger Log log;
  |        public void selectPersonnel() 
  |       {
  |          if (personnel == null) log.info("always null here");
  |       }
  | }
  | 

I appreciate any help on using new Seam Framework (we want to use seam-gen for 
business reason).
Thanks

- can't use factory with more likely name conflict.
- have tried selectPersonnel(Personnel p) with 
#{applicationHome.selectPersonnel(personnel)}- same null result.

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

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

Reply via email to