2 Replies Latest reply on Feb 28, 2011 10:03 AM by Terseer Shaguy

    rich:SubTable Not working

    Jack Y Newbie

      I have a rich:dataTable inside that i'm using rich:subtable...But it's not working...Anyone help me,.,.I saw the richfaces example but i didn't find where the values comes for subtable,.,.

        • 1. Re: rich:SubTable Not working
          Damian Harvey Apprentice

          You only typically use a subTable when the entity represented by a row in the datatable has a list of other entities.


          eg. A Person may have a list of Children



          <rich:dataTable value="#{myBean.parent}" var="parent">
             <rich:column>#{parent.name}</rich:column>
             <rich:subTable value="#{parent.children}" var="child">
                <rich:column>#{child.name}</rich:column>
             </rich:subTable>
          </rich:dataTable>
          



          Often the biggest problem with using subTables is having the header facet in the column tag rather than on it's own - ie. use a <rich:columnGroup> inside a <f:facet name="header"> directly after the <rich:dataTable>

          • 2. Re: rich:SubTable Not working
            Terseer Shaguy Newbie

            Hi Damian,


            Please can you , help out with example source code for the object its being driving me nuts.  thank you have a wonderful day