Hi Guy,
I'm using commandSortHeader in such manner
<tm:commandSortHeader columnName="NAME"
action="#{customerSearchBean.actionSort}"
actionListener="#{customerSearchBean.processSortAction}">
<f:facet name="ascending">
<tm:graphicImage value="/images/ascending-arrow.gif"
rendered="true" border="0"/>
</f:facet>
<f:facet name="descending">
<tm:graphicImage value="/images/descending-arrow.gif"
rendered="true" border="0"/>
</f:facet>
<h:outputText value="#{msg.jsp_search_customer_list_name}"/>
</tm:commandSortHeader>
where actionListener method is common for all headers - it gets the name of
column and put the name as a orderCriteria
method which populates dataModel uses this orderCriteria in order to show
ordered data.
2010/3/14 Leonardo Uribe <[email protected]>
> Hi
>
> Did you tried t:commandSortHeader? In tomahawk examples there is a demo for
> it.
>
> regards,
>
> Leonardo Uribe
>
> 2010/3/14 Guy Bashan <[email protected]>
>
> > Hi,
> >
> > I want the sort direction of the t:datatable to start from large to small
> > rather than small to large. I want this behavior to be for every column
> > that
> > is clicked on the table. Does anyone know how this can be done?
> >
> > Thanks,
> > Guy.
> >
>