From richfaces-svn-commits at lists.jboss.org Mon Aug 11 12:43:18 2008 Content-Type: multipart/mixed; boundary="===============0332422395328840886==" 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: r10028 - in trunk/docs/cdkguide/en/src/main: resources/examples and 1 other directory. Date: Mon, 11 Aug 2008 12:43:17 -0400 Message-ID: --===============0332422395328840886== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: artdaw Date: 2008-08-11 12:43:17 -0400 (Mon, 11 Aug 2008) New Revision: 10028 Added: trunk/docs/cdkguide/en/src/main/resources/examples/inputDate.xcss trunk/docs/cdkguide/en/src/main/resources/examples/resource-config.xml Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/register.xml trunk/docs/cdkguide/en/src/main/docbook/includes/skin.xml trunk/docs/cdkguide/en/src/main/resources/examples/InputDateRendererBase= .java Log: https://jira.jboss.org/jira/browse/RF-3692 - Skinnability section was fixed= , 'resource-config.xml file format' section was added. Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/register.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 --- trunk/docs/cdkguide/en/src/main/docbook/includes/register.xml 2008-08-1= 1 15:16:59 UTC (rev 10027) +++ trunk/docs/cdkguide/en/src/main/docbook/includes/register.xml 2008-08-1= 1 16:43:17 UTC (rev 10028) @@ -1,22 +1,117 @@
- - -register -UI -CDK -Guide - - -Component resources registration - - Registering component resources - -
-resources-config.xml file format - -resources-config.xml file format - -
+ + + register + UI + CDK + Guide + + + Component resources registration + + The <inputDate> component has a number of resources that should be registered = + in the resource-config.xml file. = + If the resource is registered, the RichFaces filter will send a request = to the ResourceBuilder class = + in order to create and to deliver the resource. = + + + So, you need to proceed to the inputDate/src/main/config/resou= rces directory and + register following resources in the resource-config.xml file: + + + + + an icon + + + org/mycompany/renderkit/html/images/inputDate.png + org/mycompany/renderkit/html/images/inputDate.png + +...]]> + + + + the inputDate.xcss file + + + org/mycompany/renderkit/html/css/inputDate.xcss + org/mycompany/renderkit/html/css/inputDate.xcss + = +...]]> + + + + the inputDate.js file + + + org/mycompany/renderkit/html/scripts/inputDate.js + org/mycompany/renderkit/html/scripts/inputDate.js + = +...]]> + + + + Here you could find = a full example of the resource-config.xml = + for the <inputDate> component. + +
+ resource-config.xml file format + + The resource-config.xml is a file for resources re= gistration. = + Note, that the resource-config.xml should appear i= n the META-INF folder after the + component building. + + + This file has the <resource-config= > root element = + with nested <resource> elements. = + + + It is possible to register static resources (images, JavaScript , CSS, = XCSS, SWF, (X)HTML, XML, Log files), dynamic created images, + component-incapsulated, JAR resources, etc. + + + Here is a simple example of the image registration: + + + org/mycompany/renderkit/html/images/inputDate.png + org/mycompany/renderkit/html/images/inputDate.png + +...]]> + + There are two element in the example above: + an obligatory <name>= element which defines resource name and = + a <path> = element which defines the path to the resource. + The <path> element is optional as it is possible to register = + dynamic resources with the "class" attribute. + For example you could register dynamic created image as it is shown in = the following example: + + + org.mycompany.renderkit.html.images.inputDate + +...]]> + + + +
\ No newline at end of file Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/skin.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 --- trunk/docs/cdkguide/en/src/main/docbook/includes/skin.xml 2008-08-11 15= :16:59 UTC (rev 10027) +++ trunk/docs/cdkguide/en/src/main/docbook/includes/skin.xml 2008-08-11 16= :43:17 UTC (rev 10028) @@ -1,28 +1,75 @@
- - - -skin -UI -CDK -Guide - - -Skinnability - - creation - -
-XCSS Format - -XCSS - -
-
-Dynamic images generation - -XCSS - -
+ + + + skin + UI + CDK + Guide + + + Skinnability + + One of the significant features of the Component Development Kit (CDK) i= s a skins-based technology which helps you to create a modern rich user int= erface look-and-feel. + RichFaces has a number of predefined skins you could use wtih the <inputDate> compone= nt. + But if you want to create your own skin, please, read carefully = + the "Skinnability" section of the = + <inputDate> markup you need to + define following selectors and classes in the inputDate.xcss: + = + + + + .my-inputDate-input, .my-inputDate-icon sele= ctors = + + + + + + + + + + + + + + +...]]> + + + + .my-inputDate-input, .my-inputDate-icon, and= .my-inputDate-caption classes = + + + + + + You could find a complete inputDate.xcss here. + = + = +
\ No newline at end of file Modified: trunk/docs/cdkguide/en/src/main/resources/examples/InputDateRende= rerBase.java =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/cdkguide/en/src/main/resources/examples/InputDateRendererBas= e.java 2008-08-11 15:16:59 UTC (rev 10027) +++ trunk/docs/cdkguide/en/src/main/resources/examples/InputDateRendererBas= e.java 2008-08-11 16:43:17 UTC (rev 10028) @@ -15,7 +15,7 @@ import org.mycompany.component.UIInputDate; = = -public abstract class InputDateRendererBase extends HeaderResourcesRendere= rBase{ +public abstract class InputDateRendererBase extends HeaderResourcesRender= erBase{ = public void decode(FacesContext context, UIComponent component){ ExternalContext external =3D context.getExternalContext(); Added: trunk/docs/cdkguide/en/src/main/resources/examples/inputDate.xcss =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/cdkguide/en/src/main/resources/examples/inputDate.xcss = (rev 0) +++ trunk/docs/cdkguide/en/src/main/resources/examples/inputDate.xcss 2008-= 08-11 16:43:17 UTC (rev 10028) @@ -0,0 +1,37 @@ + + + + + + = + + + + + + + + + + + + + + = + \ No newline at end of file Property changes on: trunk/docs/cdkguide/en/src/main/resources/examples/inp= utDate.xcss ___________________________________________________________________ Name: svn:executable + * Added: trunk/docs/cdkguide/en/src/main/resources/examples/resource-config.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/cdkguide/en/src/main/resources/examples/resource-config.xml = (rev 0) +++ trunk/docs/cdkguide/en/src/main/resources/examples/resource-config.xml = 2008-08-11 16:43:17 UTC (rev 10028) @@ -0,0 +1,15 @@ + + + + org/mycompany/renderkit/html/images/inputDate.png + org/mycompany/renderkit/html/images/inputDate.png + + + org/mycompany/renderkit/html/scripts/inputDate.js + org/mycompany/renderkit/html/scripts/inputDate.js + + + org/mycompany/renderkit/html/css/inputDate.xcss + org/mycompany/renderkit/html/css/inputDate.xcss + + \ No newline at end of file Property changes on: trunk/docs/cdkguide/en/src/main/resources/examples/res= ource-config.xml ___________________________________________________________________ Name: svn:executable + * --===============0332422395328840886==--