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.de> wrote:

> 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:
>
>
> <t:checkbox t:id="valueCheckBox"
>         value="ignoreLengthSelected"
>         t:mixins="jquery/bind"
>         bind.event="lengthChange"
>         bind.eventtype="change"
>         bind.zone="resultZone"/>
>
> public Object onValueChange() {
>         return resultZone.getBody();
> }
>
>
> However, I do not know how to access the value of the checkbox.
> Injecting the component does not help because it does not provide
> methods to read the state. Adding a parameter to onValueChange also does
> not work.
>
> Does anyone know how to use a checkbox this way?
>
> TIA
>  Stephan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to