p: dataTable with variable column quantity

1

Good evening.

Does anyone know if it is possible (and how to do it) to create a dataTable of primefaces whose number of columns is variable?

For example, imagine two cases, A and B. In set A I would create 3 columns. In B, I would only create 2.

Thank you!

    
asked by anonymous 01.06.2015 / 02:15

1 answer

2

The primefaces has the <p:columns> component.

Follow the link to the showcase here

    
03.06.2015 / 14:40