You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Hensley, Richard" <Ri...@McKesson.com> on 2005/05/04 22:18:03 UTC

RE: Dynamically Adding Fields

Use a ListEdit backed by a list. When the add button is pressed, add an
empty element to the list. Simply have the ListEdit render everything in
the list.
 
This implies that the add button submits the form.
 
Richard


  _____  

From: Tapestry Forum User [mailto:maillist@tapestryforums.com] 
Sent: Wednesday, May 04, 2005 12:57 PM
To: tapestry-user@jakarta.apache.org
Subject: Dynamically Adding Fields



Hi
I want to create a field dynamically based on user's input. A html page
will have a text field and then an Add Button. 
When the user clicks on the Add Button it should create another text
field on the same page. How do I do this?

When I click on the submit button, how do I get the values of these
dynamically created fields?

Please advice.



Sent using Mail2Forum (http://www.mail2forum.com) Read this topic online
here: http://www.tapestryforums.com/viewtopic.php?p=2024#2024
<http://www.tapestryforums.com/viewtopic.php?p=2024#2024>