I think you should write own component to support that.

<t:loop source="list" value="item">
       <inpu type="checkbox"  id="${xx}" name="${xx}"
 value="${item}"/>${item}<br/>
     </t:loop>

processSubmit:

request.getParameters("xxx");


2010/1/22 Hilco Wijbenga <hilco.wijbe...@gmail.com>

> Hi all,
>
> I am trying to get the submit results of a dynamic set of checkboxes
> and I'm stumped.
>
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>
>  <body>
>    <t:form>
>      <t:loop source="list" value="item">
>        <t:checkbox t:id="checkbox" t:value="checkbox"
> t:context="item"/>${item}<br/>
>      </t:loop>
>      <t:submit/>
>    </t:form>
>  </body>
> </html>
>
>
> public class Test {
>  private final String[] list = new String[] { "Abc", "Defg", "Hijkl", "Mno"
> };
>  @Property private String item;
>  @Property private boolean checkbox;
>  public String[] getList() {
>    return list;
>  }
> }
>
> If I simply add "onSuccess()" I only get the result for "Mno". Adding
> one or more parameters (for item and checkbox) doesn't seem to work. I
> tried various other methods and combinations but nothing seems to do
> the trick.
>
> How do I do this?
>
> Cheers,
> Hilco
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
regards,
Jun Tsai

Reply via email to