Hi,

I'm trying to get <t:column/> elements to display custom 
ascending/descending sort arrows. Is it true this can only be done with 
<t:commandSortHeader/>? I've converted the following code:

  <t:column sortable="true">
    <f:facet name="header">
      <h:outputText value="Column 0"/>
    </f:facet>
    <h:outputText value="#{s.id}" />
  </t:column>

to:

<t:column defaultSorted="true" sortable="true">
  <f:facet name="header">
    <t:commandSortHeader columnName="0" arrow="false" immediate="false">
      <f:facet name="ascending">
        <t:graphicImage value="ascending.gif"/>
      </f:facet>
      <f:facet name="descending">
        <t:graphicImage value="descending.gif"/>
      </f:facet>
      <h:outputText value="Column 0"/>
    </t:commandSortHeader>
  </f:facet>
  <h:outputText value="#{s.id}" />
</t:column>

This displays graphic sort arrows, but clicking on the column header 
doesn't actually *sort* the columns any more (a submit is performed, but 
the data is displayed in the same order).  Sorting works fine with the 
previous code. The column is contained within this <t:dataTable/>

<t:dataTable id="dt" value="#{bean.dataObjects}" var="s"
  binding="#{bean.dataTable}" preserveDataModel="false"
  preserveSort="true">

Thank you for any advice,
Eric Jung

_________________________

CONFIDENTIALITY NOTICE

The information contained in this e-mail message is intended only for the 
exclusive use of the individual or entity named above and may contain 
information that is privileged, confidential or exempt from disclosure 
under applicable law. If the reader of this message is not the intended 
recipient, or the employee or agent responsible for delivery of the 
message to the intended recipient, you are hereby notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited. If you have received this communication in error, please 
notify the sender immediately by e-mail and delete the material from any 
computer.  Thank you.

Reply via email to