myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sven Bunge (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (TOBAGO-986) Sheet can only sort UIOutput - Nothing happend with UILinkCommand and UIButtonCommand
Date Wed, 30 Mar 2011 13:59:05 GMT

    [ https://issues.apache.org/jira/browse/TOBAGO-986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13012965#comment-13012965
] 

Sven Bunge commented on TOBAGO-986:
-----------------------------------

Maybe it is a good idea to outsource the methods to a util class. This make it easier to resort
the sheet-modell after refresh the data itself.

> Sheet can only sort UIOutput - Nothing happend with UILinkCommand and UIButtonCommand
> -------------------------------------------------------------------------------------
>
>                 Key: TOBAGO-986
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-986
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.35
>            Reporter: Sven Bunge
>            Priority: Minor
>         Attachments: Patch_for_TOBAGO-986__Make_UILinkCommand_and_UIButtonCommand_sortable.patch
>
>
> If a column in a sheet is filled with a tc:link (UILinkCommand) or tc:button (UIButtonCommand)
the Sorter-class is unable to sort the sheet.
> There are several problems with the method Sorter#getFirstSortableChild(..):
> * The children of a UICommand are recursive searched for a tc:out -> the algorithm
look into the tc:link and tc:button.
> * Only tc:out's are returned from the method
> * .. the caller method invoke(..) get only the value-binding named "value" - The UILinkCommand
and UIButtonCommand have no value-field. 
> I optimized the getFirstSortableChild(..)-Method and introduced a new method how returns
the ValueBinding.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message