[jboss-user] [JBoss Seam] - Re: Getting outjected object's attributes

arussel do-not-reply at jboss.com
Sun Nov 25 08:02:26 EST 2007

This defenitly works:

  | <h:dataTable value="#{hotel.rooms}" var="room">
  |        <h:column>
  |                 <h:outputText value="#{room.number}" />
  |        </h:column>
  | </h:dataTable> 

If it is not working then you have a typo somewhere. 
1. first check your getter/setter for rooms.
2. output #{hotel.rooms} to see if  you got a list
3. use a datable as you did and just output #{room}


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

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

More information about the jboss-user mailing list