Conditional selection checkbox in datatable

UI Components for JSF
Post Reply
lordpixel
Posts: 134
Joined: 17 Jun 2010, 17:46

29 Nov 2010, 15:14

Hi all
it is possible to make the visibility of the selection checkbox (using the selectionmode=single on p:column) conditional?
I need to hide the selection checkbox in some cases...

Thanks

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

29 Nov 2010, 17:51

Possibly use the rendered attribute.

lordpixel
Posts: 134
Joined: 17 Jun 2010, 17:46

29 Nov 2010, 18:00

the rendered attribute hide the entire column....

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

29 Nov 2010, 18:22

Try using the rendered attribute on the component in the column.

lordpixel
Posts: 134
Joined: 17 Jun 2010, 17:46

29 Nov 2010, 18:53

Ok...but I was wondering if were possible to have conditional selection column without using a custom selection component on column...

I'll use rendered on checkbox component... ^^

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 15 guests