Il ven, 2002-06-21 alle 19:11, Ted Husted ha scritto:
> [...]
> Given a standard LabelValue type collection, this seems to work well
> enough 
> [...]
> <logic:iterate id="row" name="HOURS">
> <html:radio property="hours" name="row" valueProperty="value"/>
> <bean:write name="row" property="label"/> 
> </logic:iterate>
> 
> Should I give this a whirl, or is there a better solution already?
 

<html:radio>, <html:checkbox> and <html:select> (single or multiple) are
almost the same thing. I think there is a way to switch between
different views with a lot fewer typing.

What about:

<html:select type="radio|cehckbox|single|multiple">
  <logic:iterate>
    some HTML <html:option property="" valueProperty=""> HTML
  </logic:iterate>
</html:select>

And

<html:select type="radio|cehckbox|single|multiple">
  <html:options property="" valueProperty="" 
        prefixKey="HTML" suffixKey="HTML">  
</html:select>


Bye,
Mirko Maischberger



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

Reply via email to