-
1. Re: sortable data table
ratondeau Mar 29, 2007 8:21 AM (in response to jersinghaus)Yes that are good questions, I am interested in such a component as well.
-
2. Re: sortable data table
maitre Mar 29, 2007 8:38 AM (in response to jersinghaus)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 Mar 29, 2007 8:43 AM (in response to jersinghaus)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
sergeysmirnov Mar 29, 2007 1:53 PM (in response to jersinghaus)"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 Mar 30, 2007 9:03 AM (in response to jersinghaus)
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
sergeysmirnov Mar 30, 2007 10:30 AM (in response to jersinghaus)Do you mean the < colgroup > tag ?