A special case of {@link BeanModel} that can wrap Java collectionsand that implements the {@link TemplateCollectionModel} in order to be usable in a <foreach> block.
@author Attila Szegedi @version $Id: CollectionModel.java,v 1.22 2003/06/03 13:21:32 szegedia Exp $
In the Faces DataModel, rows are identified entirely by index. This causes major problems if the underlying data changes from one request to the next - a user request to delete one row may delete a different row because a row got added by another user, etc. To work around this, CollectionModel is based around row keys instead of indices. An implementation of CollectionModel must implement getRowKey() and setRowKey(), and handle conversion from integer indices to row keys. A trivial implementation might simply use Integer objects as the row keys, but a better version could use a unique ID in the row.
@author The Oracle ADF Faces Team
|
|
|
|