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

Reply via email to