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): <t:form t:id="selectActionForm" async="true" context="actionRow.original.id "> <t:submittingcheckbox value="actionSelected" appearance="inline" label="" /> </t:form> Form context can be used for setting up the environment if needed (can be handled in EventConstants.PREPARE_SUBMIT handler - the example above is from a data table cell) and the value of the checkbox is properly bound when handling the EventConstants.SUCCESS event for the form (where you can use ajax response renderer to perform zone updates etc) If you are using t5-jquery you are probably not on 5.4 - so you would need to replace the form.async with the 5.3 zone equivalent. HTH -- Chris On Fri, Jan 23, 2015 at 1:32 PM, 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 > >