This could be done with a mixin to the checkbox which fires an event passing
the boolean value of the checkbox and some context identifying the row.
Something like this:
<t:grid source="items" row="item">
<p:checkBoxCell>
<t:checkbox value="item.flag" t:mixins="checkboxZoneUpdater"
event="checkboxClicked" context="item" zone="zoneToUpdate" />
</p:checkBoxCell>
</t:grid>
<t:zone t:id="zoneToUpdate" />
public Block onCheckboxClicked(Item item, boolean value) {
// do something and return the zone body
}
What you want is very similar to the AjaxOnEvent mixin [1] from jumpstart.
This will need to be tweaked slightly so that the checkbox value and the
context is passed to the serverside event.
[1] http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/onevent
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Problem-with-checkboxes-in-dynamic-tables-tp5718028p5718029.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]