2.2.1: p:dataTable: onRowUnselectUpdate won't trigger unless

UI Components for JSF
Post Reply
andersaa
Posts: 20
Joined: 11 May 2010, 16:16

23 Feb 2011, 10:33

...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

zzion
Posts: 12
Joined: 29 Jul 2011, 11:14

08 Nov 2011, 12:16

I vote for buuuug ;)
Just had that issue and am happy to have read this post!

zzion
Posts: 12
Joined: 29 Jul 2011, 11:14

08 Nov 2011, 12:37

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. ???

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 29 guests