You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mike Duffy <md...@yahoo.com> on 2003/05/06 08:13:57 UTC
Nested logic:iterate for Multiboxes
It is possible to use the logic:iterate tag to generate the values
and labels for a single multibox (one group of multiple checkboxes
all with the same name):
<logic:iterate id="labelValueBean" name="someCollection"
property="someProperty">
<html:multibox property="multiBoxName">
<bean:write name="labelValueBean" property="value"/>
</html:multibox>
<bean:write name="labelValueBean" property="label"/>
</logic:iterate>
Is it possible to nest the code above within another logic:iterate
tag and dynamically generate several different multiboxes (several
groups of check boxes; each check box within a group has the same
name)? After looking at the tag code, I do not think it is possible
(multiboxes do not have an index attribute).
I was wondering if anyone has come up with a unique work around to
dynamically generate several different multiboxes.
Thanks.
Mike
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org