[ 
http://issues.apache.org/jira/browse/TOMAHAWK-423?page=comments#action_12378619 
] 

Catalin Kormos commented on TOMAHAWK-423:
-----------------------------------------

Btw, for more information, in case you didn't already see this: 
http://wiki.apache.org/myfaces/Working_with_auto_sortable_tables

> sortable table doesn't sort columns with commandLinks only
> ----------------------------------------------------------
>
>          Key: TOMAHAWK-423
>          URL: http://issues.apache.org/jira/browse/TOMAHAWK-423
>      Project: MyFaces Tomahawk
>         Type: Bug

>   Components: Extended Datatable
>     Versions: 1.1.3-SNAPSHOT
>  Environment: JDK 1.5.0_04-b05
> JBoss 4.0.3SP1
> myfaces-api-1.1.2.jar
> myfaces-impl-1.1.4-SNAPSHOT.jar
> standard-1.1.2.jar
> tomahawk-1.1.3-SNAPSHOT.jar 
> xp pro
>     Reporter: Hannes
>  Attachments: HtmlDataTable.patch
>
> Using the auto sortable table of the latest tomahawk causes a sort problem:
>       <t:dataTable value="#{dataBean.myList}" 
>                                                       var="data" 
>                                                       
> headerClass="tableheader" 
>                                                       
> columnClasses="tablecell" 
>                                                       sortable="true" 
>                                                       
> sortColumn="#{dataBean.sortColumn}" 
>                                                       
> sortAscending="#{dataBean.sortAscending}" 
>                                                       
> preserveDataModel="true" 
>                                                       preserveSort="true">
>               <t:column defaultSorted="true">
>                       <f:facet name="header">
>                                       <h:outputText value="ID" />
>                       </f:facet>
>                       <h:commandLink action="#{dataBean.selectCR}">
>                               <f:param name="dataListId" value="#{data.id}" />
>                               <h:outputText value="#{data.id}" />
>                       </h:commandLink>
>               </t:column>
> nothing gets sorted.
> Workaround: adding besides the commandLink <h:outputText value="#{data.id}" 
> rendered="false"/>        inside the t:column. Now the tables sorts by the 
> value of the outputText.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to