0 Replies Latest reply on Aug 24, 2011 8:05 AM by yaseralhs

    collapsibleSubTable

    yaseralhs Newbie

      hi

       

      I used <rich:collapsibleSubTable> in richfaces 4.1 :

       

              <rich:dataTable value="#{carsBean.inventoryVendorLists}" var="list">

              

                  <rich:column colspan="6">

                      <rich:collapsibleSubTableToggler for="sbtbl" />

                      <h:outputText value="#{list.vendor}" />

                  </rich:column>

                  <rich:collapsibleSubTable value="#{list.vendorItems}" var="item" id="sbtbl"

                      expandMode="client">

                      <rich:column>

                          <h:outputText value="#{item.model}" />

                      </rich:column>

                      <rich:column>

                          <h:outputText value="#{item.price}" />

                      </rich:column>

                      <rich:column>

                          <h:outputText value="#{item.mileage}" />

                      </rich:column>

                      <rich:column>

                          <h:outputText value="#{item.vin}" />

                      </rich:column>

                      <rich:column>

                          <h:outputText value="#{item.stock}" />

                      </rich:column>

                      <rich:column>

                          <h:outputText value="#{item.daysLive}" />

                      </rich:column>

                      <f:facet name="footer">

                          <h:outputText value="Total of #{list.vendor} Cars: #{list.count}" />

                      </f:facet>

                  </rich:collapsibleSubTable>

              </rich:dataTable>

      -----------------------------------------------------------------------------------------------------

      I want to ask a question

      I can used <rich:extendedDataTable> Instead of <rich:dataTable> ??