I have also noticed that the value parameter on the checkbox component
is a read only boolean, so using accessors to write the value is
impossible, which confirms the checkbox is not usable in this way in a
loop.
Peter Stavrinides wrote:
Sorry, let me try rephrasing my question:
When I click on the checkbox, how do I modify the corresponding object
in the loop? The only way I can see of doing this is to iterate
manually, in which case a Tapestry checkbox component is not usable in
a loop.
Peter
Peter Stavrinides 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]