I asked this question and although the answer directly satisfied my needs I am left with a feeling that there has to a simpler solution for this specific problem.
I would like to have a composite component that accepts a list of items (The type of the items agreed upon so the members can be used freely within the composite component)
The CC (composite component) display the list of items and allows for addition and subtraction of items.
I would like to do this in the most simple and efficient manner.
To illustrate the problem, an example:

The definition should be rather simple (unless of course, its not 🙂 ):
<special:dynamicFieldList value="#{bean.fieldList} />
The most abstract form of a Field object would be:
public class Field{
String uuid;
String value;
}
I guess that’s it.
How would you implement this in a simple manner?
Thanks!
I’d use a
<h:dataTable>in a composite component with a backingUIComponentwhich you can bind bycomponentTypeattribute of the<composite:interface>. In the backingUIComponentyou can then maintain theDataModeland define the actions.dynamicFieldList.xhtml(the
<h:inputText>can if necessary be your composite field component)com.example.DynamicFieldListUse it as follows:
with just this
and