Hello again,
I've found plenty of examples online for how to create dynamic sets of
checkboxes and radio buttons (and I've put them to good use), but I need to
also dynamically create select and text fields.  I managed the text field by
coding the HTML for it by hand, since I don't need to pre-populate a value
from the struts form.  I can't figure out how to do something similar for
the select, however.  I need the struts <html:options> tag to generate the
options, but for some reason it refuses to be used without being inside an
<html:select>.  Is there a way I can trick <html:select> into providing
multiple, dynamically generated select fields?

For an example of what I'm trying to create, consider this: I want a form to
set up email notifications for a number of events.  I pass the names of the
events forward from my strut as an array in the request.  For each event, I
want to generate a check box (to indicate whether or not I want to be
notified), a select field (to indicate a type of comparison such as "less
than" or "greather than"), and a text field (to input a threshold value).

I can't find anything about this with google, and a search of this forum
only yielded one post from January that didn't have any replies.  I hope
someone here will be kind enough to let me know if this is possible and if
so, how to do it.

Thanks,
Ryan
-- 
View this message in context: 
http://www.nabble.com/how-to-dynamically-generate-select-fields-tf1939418.html#a5315031
Sent from the Struts - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to