Could the AjaxFormLoop component be of help? http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/AjaxFormLoop.html
Uli On 09.02.2010 09:24 schrieb Stephan Windmüller:
Hello! On a page I have a list of strings, each represented by a TextField in a form. The user should be able to edit the Strings and add new ones. Also it should be possible to add many of them and fill them afterwards: ---- Java: @Property private List<String> values; @Property private String current; void onSelectedFromAdd() { values.add(""); } TML: <t:form> <t:loop source="values" value="current"> <t:textfield value="current"/><br/> </t:loop> <input t:type="Submit" t:id="add" value="Add"/> <input t:type="Submit" value="Save"/> </t:form> ---- My question is: How do I store the List of Strings until it is actually saved? Adding fields should not use the database. Does anyone know a solution for this other than @Persist? TIA Stephan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org