6 Replies Latest reply on Mar 30, 2007 10:30 AM by sergeysmirnov

    sortable data table

    jersinghaus

      Hello,

      I now you guys are working on a sortable data table:

      1. Will it have the capability to contain other jsf controls?
      2. Will it have vertical scroll capability?
      3. Can you give a rough ETA?


      Thanks,
      Joe

        • 1. Re: sortable data table
          ratondeau

          Yes that are good questions, I am interested in such a component as well.

          • 2. Re: sortable data table
            maitre

            You can implement sort with the rich:dataTable.

            rich:columnGroup
            rich:column
            h:outputText value="NAME"
            a4j:support event="onclick" reRender="dataTable" actionListener="${Bean.sort}" /
            /h:outputText
            /rich:column
            /rich:columnGroup

            public void sortDataTable(ActionEvent actionEvent)
            {

            // get the value of the clicked column
            String sortColumn = (String) ((HtmlOutputText) actionEvent.getComponent().getParent()).getValue();

            // sort the data here
            }

            • 3. Re: sortable data table
              maitre

              I am able to sort table, to hide column...
              I would like to known how to sort column (change column position)

              |--------|------- |
              | name | email |
              |--------|--------|

              will become

              |--------|------- |
              | email | name |
              |--------|------- |

              • 4. Re: sortable data table

                 

                "maitre" wrote:
                I am able to sort table, to hide column...
                I would like to known how to sort column (change column position)

                |--------|------- |
                | name | email |
                |--------|--------|

                will become

                |--------|------- |
                | email | name |
                |--------|------- |


                Unfortunately, this feature is not in the list of the upcoming component.

                • 5. Re: sortable data table
                  maitre


                  I think it would be a great feature to add to column group!
                  So we will be able to access to column group child and order them.

                  Is there a place to ask for feature?

                  • 6. Re: sortable data table

                    Do you mean the < colgroup > tag ?