DataTable disable selection using a boolean

UI Components for JSF
Post Reply
Guillaume
Posts: 13
Joined: 28 Jul 2011, 14:06

11 Oct 2011, 09:56

Hi,

I'm using primefaces 3.0.M3.
Is it possible to disable the selection of the dataTable component? For example by setting selectionMode = "none" (it doesn't work)
My dataTable can either be in selection mode, either in read-only mode. For now i switch between 2 dataTables.

Thanks!
Tomcat 7.0.42
JSF 2.2.3
PF 4.0

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

11 Oct 2011, 10:43

Maybe you can set rendered option to false for that selection column?

myset
Posts: 10
Joined: 25 Nov 2012, 15:08

27 Feb 2016, 16:52

Don't put attribute selectionMode and dataTable selection related attributes.
Ex. selectionMode="<single or multiple>" selection etc.
Cristian Gheorghe Florescu

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

29 Feb 2016, 18:33

???

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

01 Mar 2016, 12:24

As per forum rules don't raise old threads.You can use disabledSelection
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 44 guests