2 Replies Latest reply on Oct 10, 2009 7:34 PM by xsalefter.xsalefter.yahoo.com

    rich data table and expand and collapse data

    akki879

      hello all,


      I am new to JSF and i stuck it very badly.
      i had two problems


      1) can i create static table using rich data table.


      2) In datatable I will get n number of rows , each row will have edit button, on clicking of that edit button i have to expand the data on the same page.


      please help me, I am new to jsf..


      if any body have any related stuff please mail me alok.bits@gmail.com

        • 1. Re: rich data table and expand and collapse data
          swd847

          RF does not have a tree table control with expandable rows as such, you can emulate it by sticking a rich:togglePanel into the row, or alternatively popping up a modal panel to edit the data (this is the route I would go with). Have a look at the richfaces example application for info on how to do this.

          • 2. Re: rich data table and expand and collapse data
            xsalefter.xsalefter.yahoo.com

            May your solution is the rich:extendedDataTable, for example like this:


            <rich:extendedDataTable value="#{chartOfAccountList.resultList}"
              var="_object" groupingColumn="parent">
              
              <rich:column id="current">
                #{_object}
              </rich:column>
            
              <rich:column id="parent">
                #{_object.parent}
              </rich:column>
            
            </rich:extendedDataTable>



            By the way, what your mean for the static table?