Hi Carlos,
Do you know the size beforehand (like prompting the user for the number of
links and then showing this number of boxes)?
If so, this is quite easy using a foreach loop. Something like:
$count = $data.Parameters.CountUserEnteredInLastStep
#foreach (entry in [1..$count])
<!-- show the 2 boxes here, maybe with names url$i and desc$i -->
URL: <input type="text" size="12" name="url$i" value="" />
Desc: <input type="text" size="12" name="desc$i" value="" />
#end
You'd have a form that would send the data to an action and process the data
there (there are howtos on this).
If you want to add a new field each time the user starts typing in one
field, I'm not sure how you'd do it.
Good luck,
DAvid
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday May 7, 2004 10:11 AM
To: [EMAIL PROTECTED]
Subject: Uploading list of items
Hi, I'm newbie with turbine and need to solve a problem.
I'm building a .vm, wich needs to ask the user for input a list of links,
each one with a URL an a description (2 fields for each link). Furthermore
the list needs to have a variable size, since the user could upload 1 or
more links.
What is the best approach, using turbine, to implement this???
I've some experience doing this with struts, but it don't apply now...
Thank you very much.
Carlos.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]