JSF-h: panelGrid special style for a specific column

There is a h:panelGrid table with two columns.

He needed the first column to be 30% , and the second 70% entire width of the table.

Is there any configuration for this case? It appears that the columnClasses attribute columnClasses applied to all columns, and for a particular column, it needs a specific CSS class.

+4
source share
1 answer

Just use a list of classes separated by characters: columnClasses="column1Class, column2Class" . According to the documentation, column1Class will be used for the first column and column2Class for the second column.

+13
source

All Articles