Im using a glass fish 3.0.1, and first experimented with columns in a dataTable.
Something like that:
<h:dataTable value="#{coreGridBean.heroBeanList}" var="hero" captionStyle="font-size: 0.95em; font-style:italic" styleClass="orders" headerClass="ordersHeader" footerClass="ordersHeader" columnClasses="oddColumn,evenColumn">
From the jsf book im master record, it says that by specifying only 2 classes in the columnClasses attribute, these 2 will be repeated when the number of columns is more than 2.
Say I have five columns, columnClasses will become something like oddColumn, evenColumn, oddColumn, evenColumn, oddColumn, and we just need to define it like this: columnClasses = "oddColumn, evenColumn"
But in my experience with three columns this is not the case. From the third column they did not have classes. I needed to specify columnClasses = "oddColumn, evenColumn, oddColumn" to make it work
Is this a mistake or am I only having a bad mistake?
source share