I'm looking for a ready made, freely available component that provides the following features:
- editing list entries
- deleting entries
- adding a new entry - possibly invoked multiple times
- bind to property in managed bean of type List, or similar
- optional: reordering entries
- optional, simple: allow verification that at least one element is entered (required="true"? required="1"?)
- optional, better: restrict by minimum and maximum allowed number of elements
The simplest way to allow editing entries would be to represent them as input element. Preferably the element won't need to sync to the server for every change in the number of elements.
Alternatively: is there a trivial way to create or compose such a component oneself?
If this if of importance: currently I'm using Richfaces 3.3.3 and MyFaces 2.0.
Edit: The component is expected mostly to be used for creating new lists from scratch, so that should be as simple for the user as possible. Preferably just tabbing to the next empty input element automatically created at the end of the list. I'd like to use the component for editing these lists, too, but that feature is expected to be used much less often.