12 Replies Latest reply on Nov 4, 2006 2:04 PM by Gavin King

    jboss seam @Datamodel

    Ypatios Asmanidis Newbie

      I want to outject an ArryList so I have this in my ejb

      @DataModel
      private List<myEntity> ents=new ArrayList<myEntity>();
      


      and this code in my jsf page

      
      
      <h:dataTable value="#{listAgents}" var="report">
      ....#{report.id}
      </h:dataTable>
      
      


      and it's working..But myEntity has an ArrayList component inside it which is mapped as OneToMany like this


      @Entity
      public class myEntity{
      
      ....
      private List<otherEntity> other;
      
      
      @OneToMany
      public List<otherEntity getOther() {
      ....
      }
      
      }
      
      


      so my question is how can I outject like myObject.getOther().get(0).getName(); in my jsf pages?