[
https://issues.jboss.org/browse/RF-12978?page=com.atlassian.jira.plugin.s...
]
Jiří Štefek commented on RF-12978:
----------------------------------
Sorry for confusion. I think that we are mixing two things together.
The first thing -- if you would like to use your styles, place them as Brian suggested and
as I mentioned before -- this way it overrides the default styles for components! This is
just a required step to let the own styles to work! If you dont't do so, your style
will probably be overridden.
And the other thing -- required step with overriding the column style?
Yes, unfortunately, you still have to override the column style, because you want a column
to be changed (to be different than the default one [yes, unfortunately it has defined
background-color]), the row has the correct style. Imho this is a correct behaviour. How
could someone know, that you want or don't want to use the default style for column,
if you don't define it (in @columnClasses)?
Some solutions:
# Define a style for column (e.g. just for clearing the default style) and use it in
@columnClasses.
# In that styleClass for styling the rows:
** override the RF's collapisbleSubTable style for column ('rf-cst-c'),
** or use stronger css selector for columns which will override the default styling (it
has some pros against the previous solution -- e.g. if you want to use that default style
somewhere else on the page and that component don't use oddRow+evenRow classes).
Example:
{code}
..
.oddRow td{
background-color: inherit;
.. /* other styles to override */
}
..
/* same for evenRow class */
{code}
collapsibleSubTable ignores rowClasses
--------------------------------------
Key: RF-12978
URL:
https://issues.jboss.org/browse/RF-12978
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component
Affects Versions: 4.3.1
Environment: Firefox 20.0, Linux
Reporter: Edward I
Labels: waiting_on_user
Attachments: rf-12978.zip
The rowClasses is ignored in the following:
{code:xml}
<rich:collapsibleSubTable value="#{item.items}" var="comp"
rowClasses="oddRow, evenRow">
{code}
DataTable works correctly with the same rowClasses.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira