This content has been marked as final.
Show 2 replies
-
1. Re: inputText form array / dynamic form
pbrewer_uk Apr 20, 2007 9:50 AM (in response to damianharvey)I'm not sure if I completely understand what you are trying to achieve, but why not use something like facelets <ui:repeat> or tomahawks <t:dataList> component?
E.g.<ui:repeat value="#{myBean.name}" var="arrayItem"> <h:inputText id="firstname" value="#{arrayItem.firstname}"/> </ui:repeat>
Hope this helps, Pete. -
2. Re: inputText form array / dynamic form
damianharvey Apr 23, 2007 11:50 AM (in response to damianharvey)Thanks. You are dead right.
I (stupidly) had some code that was getting called by Ajax4JSF that was resetting everything.
Using a rich:datatable works fine for inputting tables of data. I hadn't realised that the 'var' was not just for output but also for input.<rich:dataTable id="voyageDetails" var="row" value="#{myBean.listOfObjects}"> <rich:column> <f:facet name="header">Name</f:facet> <h:inputText value="#{row.name}"> </rich:column> .... etc