You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Ronald Müller (JIRA)" <de...@myfaces.apache.org> on 2008/05/19 14:09:55 UTC

[jira] Commented: (TOMAHAWK-616) Datatable AutoSort and Facelets Bug

    [ https://issues.apache.org/jira/browse/TOMAHAWK-616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12597932#action_12597932 ] 

Ronald Müller commented on TOMAHAWK-616:
----------------------------------------

I' ve also noticed this bug in my own webapp and could reproduce this with given sample-app. 
my maschine : linux, tomcat 5.0.28, jdk1.4.2 / 1.6.0, myfaces 1.1.15 and tomahawk 1.1.15
but i'm not sure if it is facelets related or a tomahawk bug !

as a workaround you can use 't:commandSortHeader' with the right 'columnName'-attribut.
what i figured out so far is :
- the binding for 'sortColumn' is called with wrong parameters. the method receives a component-id instead of a column-name.
- if i set 'preserveDataModel' to 'true' than the bindings for 'sortColumn' and 'sortAscending' are never called.

i hope this helps finding this bug soon.

> Datatable AutoSort and Facelets Bug
> -----------------------------------
>
>                 Key: TOMAHAWK-616
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-616
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Extended Datatable
>    Affects Versions: 1.1.3
>         Environment: Windows XP Professional
> JBoss 4.03 SP1
> Tomahawk 1.14 Snapshot and MyFaces 1.14 Snapshot
>            Reporter: Tom Innes
>         Attachments: DatatableTestFacelets.zip
>
>
> I am having problems with the auto sort feature after converting my application to facelets.  The sorting only sorts one way ( ascending ) and the arrows are never displayed.  I have tried 1.13 and 1.14 versions and there is no difference in the behaviour.
> I have converted the car example to highlight the problem it is attached.  It is an eclipse project and the war is called DataTableTestFacelets.
> Just press the Find Button and then click on the links to sort the data.
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.