Peter Stavrinides wrote:
Hi AllI this scenario: <t:loop source="myDOA" value="selectedDOA" encoder="encoder"> <t:checkbox t:id="archived" /> </t:loop>
Have you tried something like this: in .tml: <t:loop source="myDOA" value="selectedDOA" encoder="encoder"> <t:checkbox t:id="archived" t:value="archived" /> </t:loop> in .java: public boolean isArchived() { return selectedDOA.isArhived(); } public void setArchived(boolean value) { return selectedDOA.setArhived(value); } selectedDOA is your loop object.
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.htmlSorry 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]
-- WBR, Ivan S. Dubrov
signature.asc
Description: OpenPGP digital signature