aspose file tools*
The moose likes Struts and the fly likes how to add new text field in run time? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to add new text field in run time?" Watch "how to add new text field in run time?" New topic
Author

how to add new text field in run time?

Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
Hi,

I wonder how to implement the following design: I would like to have a list of all family members. Of course I can't tell their size in advance so I thought of implementing an add button such as this

First Name Last Name
1__________ _________

[ADD]


When the user clicks the button, a new row will be added with a new text field:

First Name Last Name
1__________ _________
2__________ _________
[ADD]

My problem is in the action. Assuming the user has clicked the add button, how exactly should I handle it in the action?
Vani Bandargal
Ranch Hand

Joined: Oct 06, 2005
Posts: 82
you got to use Indexed properties to handle this
Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
thanks, do you have some kind of an example?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to add new text field in run time?