What is the "proper" way to build html:checkbox's inside of an
logic:iterate loop?

It seems that the html:checkbox's value parameter can't reference a
property from the bean of the iterate loop.

I have something close to:

<logic:iterate id="myItem" name="myData" type="...MyData" indexId="index">
...
  <html:checkbox indexed="true" property="uniqueKey" name="myItem"/>
...
  <html:link action="MyViewItemsAction"
             paramId="myId"
             paramName="myItem"
             paramProperty="uniqueKey">
    <bean:write name="myItem" property="uniqueKey"/>
  </html:link>
...

The html:link works great.  I just don't know how to achieve the same
for the checkbox.  What I get sent is:

myItem[0].uniqueKey=on
myItem[1].uniqueKey=on
myItem[2].uniqueKey=on

Not much of a help.  I really need the value of that uniqueKey to be the
value of the checkbox.

Any help steering me in the right direction would be appreciated.

Thanks!

/greg

--
Gregory F. March    -=-    http://www.gfm.net:81/~march    -=-    AIM:GfmNet
        

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

Reply via email to