Hi Robert!

Thanks for your answer. It pointed me to the problem. I used the add instead
of addAll of the Collection-interface. So instead of adding the elements
(Strings) I added the collection as a collection.

Regards
Roland Carlsson


Den 04-11-03 11.50, skrev "Robert Taylor" <[EMAIL PROTECTED]>:

> How many items are in the "func" data structure in request scope?
> This is what drives the number of iterations.
> 
> robert
> 
>> -----Original Message-----
>> From: Roland Carlsson [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, November 03, 2004 5:02 AM
>> To: Struts Users Mailing List
>> Subject: Multibox problem
>> 
>> 
>> Hi!
>> 
>> I'm trying to create a set of checkboxes with the MulitBox-tag.
>> 
>> The problem is that I get an extra checkbox with brackets around its value,
>> like in this html-code where I expect two checkboxes but get three:
>> 
>> <input type="checkbox" name="functions" value="[test, prov]">
>>    [test, prov] 
>> <input type="checkbox" name="functions" value="prov" checked="checked">
>>    prov 
>> <input type="checkbox" name="functions" value="test" checked="checked">
>>    test 
>> 
>> 
>> My page has this code inside it: ("funk" are a Collection stored in the
>> request, "filedata" has the property "functions" that also is a Collection)
>> 
>> <logic:iterate id="item" name="func" scope="request">
>>   <html:multibox name="filedata" property="functions">
>>    <bean:write name="item"/>
>>   </html:multibox>
>>    <bean:write name="item"/>
>> </logic:iterate>
>> 
>> Could you please point out why I get this extra checkbox
>> 
>> Thanks in advance
>> Roland Carlsson
>> 
>> 
>> ps: I have looked in the arcives but it says it doesn't support textsearch
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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

Reply via email to