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

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

Hi,

Thank you for reporting this.

I prepared a patch that will resolve this problem, hopefully it will be 
commited soon by one of the members. There was a small problem with the 
recursive method which determines the sort property from the child output 
components. 

Nice workaround :), but this won't work after this patch is applied because it 
is actualy a problem too, not rendered component shouldn't determine the 
property after which sorting will be done. You could avoid having the sort 
property automaticaly determined, by specifying it in the column, i.e. 
<t:column sortPropertyName="id".../>

Regards,
Catalin

> 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

>
> 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