You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by nicholas Krul <ni...@gmail.com> on 2008/04/23 16:37:01 UTC

Re: How to update a list from a checkbox in a loop in t5

try adding an index to the loop, and then using this index to do the
translation b/n the getters/setters.

(but I don't know anything about encoders)

--nK

On Wed, Apr 23, 2008 at 3:24 PM, Peter Stavrinides <
p.stavrinides@albourne.com> wrote:

> Hi All
>
> I this scenario:
> <t:loop source="myDOA" value="selectedDOA" encoder="encoder">
>           <t:checkbox t:id="archived" />
> </t:loop>
>
> How do I use the checkbox correctly when the user clicks it? 'I want to
> associate it with an object' via a primary key perhaps...but the checkbox
> only seems to have a value property of the type boolean:
>
>
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Checkbox.html
>
> Sorry if this question seems trivial, but I have been scratching my head
> for a while now.
>
> thanks,
> Peter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>