You need to sign in to do that
Don't have an account?
vlotarev
Odd pageDataTable rowClasses behaviour
I am wondering why definition like:
... rowClasses="odd, even" ...
produces markup like:
...
<tr class="dataRow even odd" onmouseover="if (window.hiOn){hiOn(this);}"
...
<tr class="dataRow odd even" onmouseover="if (window.hiOn){hiOn(this);}"
...
Why two style classes are specified together but not separately as mentioined in the documentation!? It's not possible to stylize properly even/odd row highlighting in this case ...
Hi vlotarev,
I tested rowClasses and its working as it is mentioned in doumentation.
But I think the way your markup is shown it has to work. Because if you want the odd, even efect (I imagine you change bgcolor or something) second style shoud override the first one.
Can you post this fragment of your code?
Maybe I can help you.
My code is primitive:
Could you please put you working test code?
Well, I did some testing. Regular <apex:dataTable> seems to work correctly but <apex:pageDataTable> renders wrong rowClasses. It's not possible to stylize rows correctly if both "odd even" are specified. The class that was declared first in CSS file takes precedence. The order in which they are specified in styleClass doesn't matter.
Could anybody advice something on that topic?