...rowUnselectListener is specified.
First tried adding onRowUnselectUpdate, but no ajax call was made when deselecting. Added rowUnselectListener with an empty method in the controller, and it works like a charm.
Bug or feature?
Regards,
Anders
2.2.1: p:dataTable: onRowUnselectUpdate won't trigger unless
Hm, doesn't work for me either. Table header:
<p:dataTable id="childtable"
var="dAdvertSpaceUnit"
value="#{advertSpaceUnitController.childList}"
paginator="true" rows="10"
selection="#{advertSpaceUnitController.selectedChildArray}"
selectionMode="multiple"
rowSelectListener="advertSpaceUnitController.nop1()"
rowUnselectListener="advertSpaceUnitController.nop2()"
onRowSelectUpdate="asudetailform:childtable"
onRowUnselectUpdate="asudetailform:childtable">
When no listener is set, the onRowSelectUpdate works (the positive selection state of a row is shown), the Unselect update doesn't.
Without the updates, the visible selection state of the rows isn't updated on a click at all.
Another phenomenon: The prependId thing behaves strangely: The datatable is inside a p:layoutUnit, but it's id must not be in the update path, or else the page throws an error.
Edit: Seems that on one click, the item is selected and instantly deselected again, since both 'nop' outputs appear. ???
<p:dataTable id="childtable"
var="dAdvertSpaceUnit"
value="#{advertSpaceUnitController.childList}"
paginator="true" rows="10"
selection="#{advertSpaceUnitController.selectedChildArray}"
selectionMode="multiple"
rowSelectListener="advertSpaceUnitController.nop1()"
rowUnselectListener="advertSpaceUnitController.nop2()"
onRowSelectUpdate="asudetailform:childtable"
onRowUnselectUpdate="asudetailform:childtable">
When no listener is set, the onRowSelectUpdate works (the positive selection state of a row is shown), the Unselect update doesn't.
Without the updates, the visible selection state of the rows isn't updated on a click at all.
Another phenomenon: The prependId thing behaves strangely: The datatable is inside a p:layoutUnit, but it's id must not be in the update path, or else the page throws an error.
Edit: Seems that on one click, the item is selected and instantly deselected again, since both 'nop' outputs appear. ???
-
- Information
-
Who is online
Users browsing this forum: No registered users and 29 guests