1 Reply Latest reply on Aug 14, 2006 10:22 AM by Carsten Hoehne

    In attribute requires value for component: Register.members

    legolas woodland Novice

      hi
      Thank you for reading my post
      I have problem with my code , and i can not resolve it even by readin some post by other people
      here is the session bean code :

      
      
       @DataModel(value="members")
       @In(scope=ScopeType.SESSION, value="members")
       private List<Member> members;
      
       @Factory("members")
       public void getmembers(){
       members = em.createQuery(" from members member order by member.joinDate").getResultList();
       }
      
      


      and here is my jsp file code :

       <h:dataTable var="mem" value="#{members}" >
       <h:column>
       <f:facet name="header">
       <h:outputText value="name"/>
       </f:facet>
       <h:outputText value="#{mem.name}"/>
       </h:column>
       <h:column>
       <f:facet name="header">
       <h:outputText value="user name"/>
       </f:facet>
       <h:outputText value="#{mem.uName}" />
       </h:column>
       <h:column>
       <f:facet name="header">
       <h:outputText value="password"/>
       </f:facet>
       <h:outputText value="#{mem.password}"/>
      
       </h:column>
      
       </h:dataTable>
      
      
      



      i get the following exception :

      org.jboss.seam.RequiredException: In attribute requires value for component: Register.members
      



      can some one please tell me what is wrong here ?

      I add what ever annotation that i know to members with no luck

      Thanks