Re: Checkbox value for zone update

2015-01-26 Thread Lance Java
I'm guessing you have a javascript error on your page. Are you using jquery or prototype? tapestry-stitch only works for prototype. You'll need to tweak observe. js to get it to work with jquery (eg observe() changed to on() etc) On 26 Jan 2015 09:17, "Stephan Windmüller" < stephan.windmuel...@tu-

Re: Checkbox value for zone update

2015-01-26 Thread Stephan Windmüller
On 23.01.2015, schrieb Lance Java wrote: > You could use the observe mixin from tapestry stitch. The mixin can fire a > zone update based on the change event, the current checkbox value can be > sent as the event context. Hey Lance, your project sounds very promising, thanks for the hint. But ar

Re: Checkbox value for zone update

2015-01-26 Thread Stephan Windmüller
On 23.01.2015, Chris Poulsen wrote: > We have a "submittingcheckbox" component for this kind of thing. Basically > the component renders a checkbox and a hidden submit. Thanks for the suggestion, but using a separate submit field sounds a bit complex for such a simple task. I refuse to believe th

Re: Checkbox value for zone update

2015-01-24 Thread Stephan Windmüller
On 23.01.2015, Thiago H de Paula Figueiredo wrote: > You access the value of the checkbox (or any other Tapestry form field > component) by accessing the property it's editing. It the case above, > the ignoreLengthSelected property. This does not work with the zone update, the value is always fal

Re: Checkbox value for zone update

2015-01-23 Thread Lance Java
You could use the observe mixin from tapestry stitch. The mixin can fire a zone update based on the change event, the current checkbox value can be sent as the event context. http://t5stitch-lazan.rhcloud.com/observedemo On 23 Jan 2015 12:33, "Stephan Windmüller" < stephan.windmuel...@tu-dortmund.

Re: Checkbox value for zone update

2015-01-23 Thread Thiago H de Paula Figueiredo
On Fri, 23 Jan 2015 10:32:00 -0200, Stephan Windmüller wrote: Hello, Hi! However, I do not know how to access the value of the checkbox. You access the value of the checkbox (or any other Tapestry form field component) by accessing the property it's editing. It the case above, the

Re: Checkbox value for zone update

2015-01-23 Thread Chris Poulsen
Hi, We have a "submittingcheckbox" component for this kind of thing. Basically the component renders a checkbox and a hidden submit. An onChange handler on the checkbox clicks the submit Example usage (T5.4): Form context can be used for setting up the environment if needed (can be hand

Checkbox value for zone update

2015-01-23 Thread Stephan Windmüller
Hello, according to the Tapestry documentation, zones cannot be updated by checkboxes. I found some information on this topic, primarily in this mailing list, for how to circumvent this problem. My current approach is to use tapestry5-jquery: public Object onValueChange() { return res