If you have the names as

allTextFields(0)
allTextFields(1)

Then you should be able to treat it as an indexed property (I think)

> -----Original Message-----
> From: David Nielsen [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, December 04, 2003 7:37 AM
> To: webwork-list
> Subject: [OS-webwork] Dynamic text fields
> 
> 
> Hi.
> 
> Im a little stuck with some dynamic added text fields.
> 
> i have a webwork template with the following in it:
> 
> #foreach($textField in $allTextFields)
>       <input type="text" name="$textField.getName()" 
> value="$textField.getValue()"> #end
> 
> i have a getAllTextFields method in my Action class that 
> returns a Vector of my own TextField classes, that have 
> getName() & getValue() methods
> 
> now i need to submit the form, but the Action class doesnt 
> have get/set methods in all the textfield names, because they 
> are dynamicly added.
> 
> does anyone know a solution how i dynammicly can add text 
> fields and be able to submit them to the action ?
> 
> Regards David
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program. 
> Does SourceForge.net help you be more productive?  Does it 
> help you create better code?  SHARE THE LOVE, and help us 
> help YOU!  Click Here: http://sourceforge.net/donate/ 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to