PETER BLIZNAK wrote:
Hi there,
I run into something I cant figure perhaps someone
here can help me to shed some light on it.
Basically I have dynamic table - meaning I iterate
over supplied colection and build up table. No problem
there that is simple stuff. Confusion starts when one
of the columns must be list of options (or drop-down
list) and then all need to get preselected with
different values.
I have dealt with dynamic radio and check boxes but
this seem to be different situation. I know how to
preselect ONE option box...but if there are part one
the collection I seemed to lost handle on it.
If I have one option box then I can use something like
this
<html:select property="siteName_1" size="0" >
                                                                <html:options 
collection="sitesList"
property="siteId" labelProperty="siteName" />
                                                        </html:select>

Not sure exactly what you mean? Does the select above need to be a multiple select box? If so as long as siteName_1 is a String[] or List you should be fine. I don't think that's what's you are asking though. If it is a regular single select than as long as siteName_1 happens to match one of the values in sitesList than it will show up selected.

I'm not sure what "sitesList" should have to do with it unless sitesList is unique per row? If so then you'll have to pull sitesList from whatever property you happen to be iterating over.

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

Reply via email to