[jboss-user] [JBoss Seam] - In attribute requires value for component: Register.members

legolas.w@gmail.com do-not-reply at jboss.com
Mon Aug 14 08:42:57 EDT 2006


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

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964949



More information about the jboss-user mailing list