0

I use following example from primefaces...

columnToggler-Showcase

Is there a possibility to preselect / initilize the columns in the Bean? I want to load just specific columns like here. The View will have about 30 Columns and the user should be able to customize different views that can be saved.

Kukeltje
  • 12,223
  • 4
  • 24
  • 47
eyeprime
  • 75
  • 1
  • 8
  • Possible duplicate of [How can I initially hide columns in a p:dataTable with p:columnToggler](http://stackoverflow.com/questions/25487243/how-can-i-initially-hide-columns-in-a-pdatatable-with-pcolumntoggler) – Kukeltje Feb 02 '16 at 15:02

1 Answers1

0

You approach this the wrong way. You can set the visible attribute per column and the columnToggler client-side takes a look at the resulting html for determining its state.

<p:column visible="#{visibilityModel.column(3)}" /> 

or by column name or whatever... Its up to you

See also

Kukeltje
  • 12,223
  • 4
  • 24
  • 47