3 Replies Latest reply on Apr 2, 2009 5:56 AM by ilya_shaikovsky

    help needed in rich:columns

    eve_fang

      I trying to display my data in 2 columns using rich:columns, but i need the columns to display different data, Example:

      column1 will display "index"
      column2 will display "name"

      Can it be done using rich:columns or i have use rich:dataTable?

      -thanks.

        • 1. Re: help needed in rich:columns
          nbelaevski

          Hello,

          Columns can't be used standalone, they're put into some iteration component like rich:dataTable or h:dataTable. RichFaces provides a number of iteration components; consider exploring livedemo site and DZone RefCard.

          • 2. Re: help needed in rich:columns
            eve_fang

            Ya i understand that. Im using the tag inside rich:dataTable.

            Im using rich:columns because i can set the number of columns. I have pass a list to the columns and wish to display out in 2 columns. Im just wandering if i can get the list elements to display in different columns.

            columns1 | columns2
            list[1] | list[2]

            can it be done?


            • 3. Re: help needed in rich:columns
              ilya_shaikovsky

              so the items from list1 and list2 not refered one to another?

              check the dataTable and dataGrid samples at our demosite.