You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Catalin Kormos (JIRA)" <de...@myfaces.apache.org> on 2006/05/09 14:58:21 UTC

[jira] Updated: (TOMAHAWK-423) sortable table doesn't sort columns with commandLinks only

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

Catalin Kormos updated TOMAHAWK-423:
------------------------------------

    Status: Patch Available  (was: Open)

> 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