Affects Version/s: 1.2_02
Fix Version/s: 1.2_03-b01
Operating System: All
According to the docs at
"http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/": "If the number
of elements in this list [of comma-separated values in the "columnClasses"
attribute of h:dataTable] is less than the number of columns specified in the
"columns" attribute, no "class" attribute is output for each column greater than
the number of elements in the list. If the number of elements in the list is
greater than the number of columns specified in the "columns" attribute, the
elements at the posisiton in the list after the value of the "columns" attribute
First, there is no "columns" attribute in h:dataTable, according to the docs,
and from what I could see in the current (1.2_02) RI.
Second, the current implementation seems to repeatedly cycle through the values
of columnClasses (much like the way rowClasses works) rather than behaving as
described in the docs.
Third, the spec really should be changed or enhanced to also allow a styleClass
attribute to be applied to the <h:column> element instead of this system.
The cycling isn't necessarily a bad behavior (the same use case as the current
rowClasses attributes, for example an even vs. odd column class), as long as
it's possible to still apply column styles without the cycling at the same time
(perhaps the styleClass attribute I proposed in the previous paragraph).