From richfaces-svn-commits at lists.jboss.org Thu Aug 2 09:49:34 2007 Content-Type: multipart/mixed; boundary="===============6997555743125368274==" 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: r2011 - trunk/docs/userguide/en/src/main/docbook/modules. Date: Thu, 02 Aug 2007 09:49:34 -0400 Message-ID: --===============6997555743125368274== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: smukhina Date: 2007-08-02 09:49:34 -0400 (Thu, 02 Aug 2007) New Revision: 2011 Added: trunk/docs/userguide/en/src/main/docbook/modules/a4jUGskinnability.xml Log: http://jira.jboss.com/jira/browse/RF-522 Guides chapters merging Added: trunk/docs/userguide/en/src/main/docbook/modules/a4jUGskinnability.x= ml =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 --- trunk/docs/userguide/en/src/main/docbook/modules/a4jUGskinnability.xml = (rev 0) +++ trunk/docs/userguide/en/src/main/docbook/modules/a4jUGskinnability.xml = 2007-08-02 13:49:34 UTC (rev 2011) @@ -0,0 +1,79 @@ + + + + + + + Skinnability + + skins + + custom skin + + + + Built-in skinnability in Ajax4jsf + Ajax4jsf gives an opportunity to incorporate skinnabilit= y into UI + design. With this framework you can easily use named skin parameters in + properties files to control the appearance of the skins that are applied + consistently to a whole set of components. You can look at examples of + predefined skins at: + + + http://liv= edemo.exadel.com/richfaces-demo/ + + + + You may simply control the look-and-feel of your application by using = the skinnability service = + of the Ajax4jsf framework. With the means of this service you can defi= ne the same style for rendering = + standard JSF components and custom JSF components built with the help = of Ajax4jsf. + + To find out more on skinnability possibiliti= es, follow these + steps: + + + Create a custom render kit and register it in the faces-config.xml + like this: + + NEW_SKIN + = + org.ajax4jsf.framework.renderer.ChameleonRenderKitImpl + +]]> + + + Then you need to create and register custom renderers for the + component based on the look-and-feel predefined variables: + + javax.faces.Command = + javax.faces.Link = + + newskin.HtmlCommandLinkRenderer + = +]]> + + + Finally, you need to place a properties file with skin parameters + into the class path root. There are two requirements for the propert= ies + file: + + + The file must be named <ski= nName>.skin.properties, in this case, it would be = called + newskin.skin.properties. + + + The first line in this file should be render.kit=3D + <render-kit-id>, in this case, it would be called + render.kit=3DNEW_SKIN. + + + + + Extra information on custom renderers creation can be found + at: + + + http://java.sun.com/javaee/javaserverfaces/reference/docs/i= ndex.html + + + --===============6997555743125368274==--