I haven't needed one before, but it looks like we could use a tag
enhancement for printing a collection of radio buttons. 

Given a standard LabelValue type collection, this seems to work well
enough 

<logic:iterate id="row" name="HOURS"
type="org.apache.struts.util.LabelValueBean">
<html:radio property="hours" value="<%=row.getValue()%>"/> <bean:write
name="row" property="label"/> 
</logic:iterate>

And just adding a "valueProperty" property could eliminate the
scriptlet, so we'd have 

<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?

-- Ted Husted, Husted dot Com, Fairport NY US
-- Java Web Development with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services

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

Reply via email to