I have a requirement to add multiple textfields like
Name : <h:inputText id="name" />
Age : <h:inputText id="age" />
<h:commandButton value="Add" />

I am looking for JSF/MyFaces component which onclick of Add button can store
multiple records of Name and Age into some kind of JSF Component

I can think of adding these multiple records to dropdown using
h:selectOneMenu. But wondering if this is the right way to go as
1) I am also looking to update/delete these records on User Interface
2) Name, Age are not Unique
3) I have to iterate thru these list in the Backing Bean and then add  the
List to Parent class  
4)Parent Class has 1 -Many relationship  i.e. One Parent class is associated
multiple child records of Name & Age 
5) Click on Submit button results in persisting single parent record with
multiple child records of name, age

Any pointers/suggestions will be highly appreciated




-- 
View this message in context: 
http://www.nabble.com/JSF-MyFaces-Component-to-Add-Multiple-textfields-tf4088641.html#a11621575
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to