You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Adam Winer (JIRA)" <de...@myfaces.apache.org> on 2007/07/19 18:30:06 UTC

[jira] Created: (TRINIDAD-114) CollectionModel: want analogue to ListDataModel that can handle removal of items cleanly

CollectionModel: want analogue to ListDataModel that can handle removal of items cleanly
----------------------------------------------------------------------------------------

                 Key: TRINIDAD-114
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-114
             Project: MyFaces Trinidad
          Issue Type: New Feature
            Reporter: Adam Winer


It would be extremely handy to have an analogue to ListDataModel that can deal with 
adding or removing items (or plain mutations to the list) without getting confused, 
by implementing CollectionModel.getRowKey(). 

I can think of two routes: 
 - A CollectionModel that exposes add/remove and keeps track of 
   row keys, so it doesn't get lost 
 - A CollectionModel that has a "keyProperty" - the name of the object 
   property that is the row key - and uses this to retrieve the row key at all 
   times.

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