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

Grant Smith reopened TOMAHAWK-423:
----------------------------------

             

> sortable table doesn't sort columns with commandLinks only
> ----------------------------------------------------------
>
>                 Key: TOMAHAWK-423
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-423
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Extended Datatable
>    Affects 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
>         Assigned To: Grant Smith
>             Fix For: 1.1.4-SNAPSHOT
>
>         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