From richfaces-svn-commits at lists.jboss.org Wed Aug 19 06:06:58 2009 Content-Type: multipart/mixed; boundary="===============0669523335040795357==" MIME-Version: 1.0 From: richfaces-svn-commits at lists.jboss.org To: richfaces-svn-commits at lists.jboss.org Subject: [richfaces-svn-commits] JBoss Rich Faces SVN: r15212 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/modules. Date: Wed, 19 Aug 2009 06:06:58 -0400 Message-ID: <200908191006.n7JA6wCA032605@svn01.web.mwc.hst.phx2.redhat.com> --===============0669523335040795357== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: ochikvina Date: 2009-08-19 06:06:57 -0400 (Wed, 19 Aug 2009) New Revision: 15212 Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/modules/RFCa= rchitectover.xml Log: https://jira.jboss.org/jira/browse/RF-7716 - added new section "Definition = of Custom Style Classes"; Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/modul= es/RFCarchitectover.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/community/3.3.X/docs/userguide/en/src/main/docbook/modules/RFC= architectover.xml 2009-08-19 08:20:28 UTC (rev 15211) +++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/modules/RFC= architectover.xml 2009-08-19 10:06:57 UTC (rev 15212) @@ -3639,7 +3639,66 @@
Definition of Custom Style Classes - + In the "Reference Data" section for most of the componen= ts (see "The RichFaces Components" chapter) = + there are the tables with rich-* classes definitions. Thes= e classes allow to redefine styles for a specific component by means of CSS. + Actually, you should create classes with the same names and define new = properties in them. + = + Let's consider the <rich:modalPanel> component. = + To change the background color for the mask, it's enough to redefi= ne the .rich-mpnl-mask-div class. + = + + Example: + + + = + This is a result: + = +
+ Style redefinition with predefined class + + + + + +
+ = + If you have multiple components on the page, the redefined styles = will be applied to all of them. To change styles for a = + particular component on the page, create your own style classes and use= them in corresponding style class attributes. An example on how to = + change the font style for the header of a particular modal panel is pla= ced below: + = + + Example: + + + Next specify + myClass as the value of the + "headerClass" + attribute for + <rich:modalPanel> + : + = + +]]> + = + This is a result: + = +
+ Style redefinition with own class + + + + + +
+ =
State Manager API --===============0669523335040795357==--