[richfaces-issues] [JBoss JIRA] (RF-12978) collapsibleSubTable ignores rowClasses
Edward I (JIRA)
jira-events at lists.jboss.org
Sat Jun 22 14:58:20 EDT 2013
[ https://issues.jboss.org/browse/RF-12978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12783784#comment-12783784 ]
Edward I edited comment on RF-12978 at 6/22/13 2:57 PM:
--------------------------------------------------------
Brian, thanks for the advice. Unfortunately, it didn't work.
Here's what happened:
Firstly, I assume you mean h:outputStyleSheet instead of h:outputLink - the latter generates an HTML <a ...> tag.
I put the h:outputStyleSheet at the end of my XHTML file and confirmed that the generated HTML includes my CSS as the very last one within the <head> section. However, the same problem exists - my styles are not being applied to the subtable unless I include:
{code:xml}
<style type="text/css">
.rf-cst-c {
background-color: inherit;
}
</style>
{code}
within the XHTML file - it does not work if I include that "inherit" style in the .css file.
This is exactly where we were day 1 and now I'm confused as to whether there really is a workaround and whether I've explained the problem properly.
The root problem here is that I can't override RF4 styles with my own unless I use the above <style> tag within each XHTML file - not even within the css (which would be a more acceptable workaround). Furthermore, the above style is specific for the subTable - other components may need the similar workaround using different tags (i.e. .rf-cst-c, etc.). I hope this makes sense.
>From what I can tell during this thread, the cause is either due to JSF2, RF4 or some combination. However, the cause does NOT seem to be simply the order of my .css <link> within <head>.
was (Author: edwardiv):
Brian, thanks for the advice. Unfortunately, it didn't work.
Here's what happened:
Firstly, I assume you mean h:outputStyleSheet instead of h:outputLink - the latter generates an HTML <a ...> tag.
I put the h:outputStyleSheet at the end of my XHTML file and confirmed that the generated HTML includes my CSS as the very last one within the <head> section. However, the same problem exists - my styles are not being applied to the subtable unless I include:
{code:xml}
<style type="text/css">
.rf-cst-c {
background-color: inherit;
}
</style>
{code}
within the XHTML file - it does not work if I include that "inherit" style in the .css file.
This is exactly where we were day 1 and now I'm confused as to whether there really is a workaround and whether I've explained the problem properly.
The root problem here is that I can't override RF4 styles with my own I use the above <style> tag within each XHTML file - not even the css (which would be a more acceptable workaround). Furthermore, the above style is specific for the subTable - other components may need the similar workaround using different tags (i.e. .rf-cst-c, etc.). I hope this makes sense.
>From what I can tell during this thread, the cause is either due to JSF2, RF4 or some combination. However, the cause does NOT seem to be simply the order of my .css <link> within <head>.
> 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
More information about the richfaces-issues
mailing list