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

2008-04-27 Thread Peter Stavrinides
Message - From: "Josh Canfield" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Thursday, 24 April, 2008 9:44:40 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: How to update a list from a checkbox in a loop in t5 The way checkbox works out of the box y

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

2008-04-24 Thread Josh Canfield
say if this was a textfield, > making the checkbox not very useful in a loop! > > Peter > > > > - Original Message - > From: "nicholas Krul" <[EMAIL PROTECTED]> > To: "Tapestry users" > Sent: Thursday, 24 April, 2008 1:13:44 PM GMT

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

2008-04-24 Thread Joel Wiegman
ginal Message- From: Peter Stavrinides [mailto:[EMAIL PROTECTED] Sent: Thursday, April 24, 2008 10:37 AM To: Tapestry users Subject: Re: How to update a list from a checkbox in a loop in t5 Hi Joel, I thought my previous posts made it obvious that it is not possible to use the encoder, I no

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

2008-04-24 Thread Peter Stavrinides
GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: RE: How to update a list from a checkbox in a loop in t5 Peter, Are you using a DefaultPrimaryKeyEncoder as your encoder? Joel -Original Message- From: Peter Stavrinides [mailto:[EMAIL PROTECTED] Sent: Thursday, April 24, 2008

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

2008-04-24 Thread Joel Wiegman
Peter, Are you using a DefaultPrimaryKeyEncoder as your encoder? Joel -Original Message- From: Peter Stavrinides [mailto:[EMAIL PROTECTED] Sent: Thursday, April 24, 2008 8:39 AM To: Tapestry users Subject: Re: How to update a list from a checkbox in a loop in t5 Hi Ivan This is

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

2008-04-24 Thread Peter Stavrinides
- Original Message - From: "nicholas Krul" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Thursday, 24 April, 2008 3:48:46 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: How to update a list from a checkbox in a loop in t5 Perhaps trimming it back

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

2008-04-24 Thread nicholas Krul
van > > This is precisely what I tried. > > > - Original Message - > From: "Ivan Dubrov" <[EMAIL PROTECTED]> > To: "Tapestry users" > Sent: Thursday, 24 April, 2008 1:59:10 PM GMT +02:00 Athens, Beirut, > Bucharest, Istanbul > Subject: Re: How to update

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

2008-04-24 Thread Peter Stavrinides
Hi Ivan This is precisely what I tried. - Original Message - From: "Ivan Dubrov" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Thursday, 24 April, 2008 1:59:10 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: How to update a list from a check

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

2008-04-24 Thread Peter Stavrinides
- From: "nicholas Krul" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Thursday, 24 April, 2008 1:13:44 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: How to update a list from a checkbox in a loop in t5 Perhaps some code would help us out. .tml loop &

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

2008-04-24 Thread Ivan Dubrov
Peter Stavrinides wrote: Hi All I this scenario: Have you tried something like this: in .tml: in .java: public boolean isArchived() { return selectedDOA.isArhived(); } public void setArchived(boolean value) { return selectedDOA.setArhived(value); } selectedDOA

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

2008-04-24 Thread nicholas Krul
Perhaps some code would help us out. .tml loop & checkbox snippet .java index & getter & setter snippet ? I can only try On Thu, Apr 24, 2008 at 10:54 AM, Peter Stavrinides < [EMAIL PROTECTED]> wrote: > I have also noticed that the value parameter on the checkbox component is > a read only bo

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

2008-04-24 Thread Peter Stavrinides
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

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

2008-04-23 Thread Peter Stavrinides
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

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

2008-04-23 Thread nicholas Krul
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 < [EMAIL PROTECTED]> wrote: > Hi All > > I this scenario: > > > > > How do I

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

2008-04-23 Thread Peter Stavrinides
Hi All I this scenario: 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/