[richfaces-issues] [JBoss JIRA] Created: (RF-5944) New attribute "bodyStyle" for the component "rich:panel"

Karl Philipp (JIRA) jira-events at lists.jboss.org
Wed Jan 28 08:08:44 EST 2009


New attribute "bodyStyle" for the component "rich:panel"
--------------------------------------------------------

                 Key: RF-5944
                 URL: https://jira.jboss.org/jira/browse/RF-5944
             Project: RichFaces
          Issue Type: Feature Request
    Affects Versions: 3.3.0
         Environment: Windows XP SP3,
Eclipse 3.4 "GANYMEDE",
Web Tools 3.0.3,
RichFaces-VPE-win32-3.0.0.CR2-N200901261808,
RichFaces 3.3.0.GA,
JSF 1.2 RI,
Facelets 1.1.14

            Reporter: Karl Philipp
            Priority: Optional


I tried

    <rich:panel style="font-size: 24pt;">
      <h:outputText value="Your login was successful! " />
    </rich:panel>

Surprisingly the style "font-size: 24pt;" has no affect.
Using Firebug I discovered that the rich:panel component is rendered as follows:

<div style="font-size: 24pt;" id="j_id30" class="dr-pnl rich-panel">
  <div id="j_id30_body" class="dr-pnl-b rich-panel-body">
    Your login was successful!
  </div>
</div>

with CSS rule set

.dr-pnl-b {
  color:#000000;
  font-family:Arial,Verdana,sans-serif;
  font-size:11px;
}

That is, the font-size of this inner class overwrites the font-size specified as style of the outer DIV block.

If there is a bodyStyle attribute, e.g.

    <rich:panel bodyStyle="font-size: 24pt;">
      <h:outputText value="Your login was successful! " />
    </rich:panel>

 that is rendered as a style attribute of the inner DIV block, i.e.

<div id="j_id30" class="dr-pnl rich-panel">
  <div id="j_id30_body" class="dr-pnl-b rich-panel-body" style="font-size: 24pt;">
    Your login was successful!
  </div>
</div>

I would get the desired result.

BTW,  I know that I can use the attribute bodyClass for these purposes but sometimes it is more useful to use a style without indirections, that is defining an extra class.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list