0

How can I make the Primefaces p:dataTable selection Enable or Disable or Multiple or Single dynamically based on some condition.

Kishor Prakash
  • 8,011
  • 12
  • 61
  • 92
  • more information see this blog http://balusc.blogspot.in/2006/06/using-datatables.html –  Oct 04 '13 at 08:52
  • This could be interesting : http://stackoverflow.com/questions/6395593/disable-row-selection-for-a-few-rows-only-primefaces – Omar Oct 04 '13 at 09:08
  • @what'up: That ancient blog is about JSF 1.x ``, not about JSF 2.x let alone PrimeFaces. PrimeFaces has already extensive examples in its own showcase site. – BalusC Oct 04 '13 at 10:45

1 Answers1

0

There is disabledSelection attribute of p:dataTable in PrimeFaces 5+. Using this attribute with proper data table update, enable/disable row selection can be reached.

Vasil Lukach
  • 3,658
  • 3
  • 31
  • 40