[ 
https://issues.apache.org/jira/browse/TRINIDAD-782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12571587#action_12571587
 ] 

Gerhard Petracek commented on TRINIDAD-782:
-------------------------------------------

hello max,

thank you for joining the discussion!
good point. i basically agree with your suggestion. wrapping e.g. a list with 
SortableModel is my current workaround in such cases.

(at the moment i'm not aware of a scenario in which i had no wrapped data + the 
need for filtering the data. do you have a real-world example?)

however, if you would like to use the plain data-structure the problem remains.
do you have a suggestion for such a scenario? (maybe we can close this issue.)

the intention of this patch is not to replace the workaround/solution above.
if you have a component binding in place and there is no need to wrap the data 
manually you have an additional and convenient possibility to force re-indexing 
after filtering the data (without overhead in all other cases.)
concerning the name of the method i agree - i planned to think about a better 
choice before committing.

there are several possibilities to solve this issue.

e.g.:
- the provided patch (+ a better method name)
- "frequent" re-indexing ... (-> disadvantage: overhead in all other cases)
- no support for sorting + filtering without wrapping the data. (-> we have to 
close the issue)
- ...

regards,
gerhard

> problem with filtering a sortable table
> ---------------------------------------
>
>                 Key: TRINIDAD-782
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-782
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.3-core
>            Reporter: Gerhard Petracek
>         Attachments: UIXCollection.patch
>
>
> SortableModel: missing re-indexing of a sorted model after model content has 
> been filtered/changed (alternative: reset indices)
> further details: http://www.mail-archive.com/[EMAIL PROTECTED]/msg43802.html

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

Reply via email to