Im having a set of data that are coming dynamically from some source and
displaying it in a dataTable.
Also, I have given support for sorting on columns using CommandSortHeader.
Basically i used two t:columns. i.e
<t:dataTable.... >
<t:columns value="#{TableBean.keyColumnDataModel}" var="kcolumn" >
<f:facet name="header">
<t:commandSortHeader columnName="#{kcolumn}" arrow="true" >
<h:outputText value="#{kcolumn}" />
</t:commandSortHeader>
</f:facet>
<h:outputText value="#{TableBean.keyColumnValue}" />
</t:columns>
<t:columns value="#{TableBean.columnDataModel}" var="column" >
<f:facet name="header">
<t:commandSortHeader columnName="#{column}" arrow="true" >
<h:outputText value="#{column}" />
</t:commandSortHeader>
</f:facet>
<h:outputText value="#{TableBean.columnValue}" />
</t:columns>
</t:dataTable>
When i click on first set of columns, the sorting is done (i mean it calls
the setSortColumn..). But not for the second t:columns.
if i move the second t:columns to up, ie. before to the first t:columns,
then the second t:columns sort is working.
i mean to say the t:commandsortheader is working only on one t:columns.that
too, the first t:columns. But not on the both.
Any ideas..... ?
Thanks...
--
View this message in context:
http://www.nabble.com/commandSortHeader-is-not-working-if-we-have-two-t%3Acolumns-in-a-datatable-tf2652080.html#a7400575
Sent from the MyFaces - Users mailing list archive at Nabble.com.