From richfaces-svn-commits at lists.jboss.org Wed Jul 9 12:54:10 2008 Content-Type: multipart/mixed; boundary="===============3231530285239914611==" 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: r9494 - in trunk/docs/cdkguide/en/src/main: docbook/includes and 2 other directories. Date: Wed, 09 Jul 2008 12:54:10 -0400 Message-ID: --===============3231530285239914611== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: artdaw Date: 2008-07-09 12:54:10 -0400 (Wed, 09 Jul 2008) New Revision: 9494 Added: trunk/docs/cdkguide/en/src/main/resources/images/tree.png Removed: trunk/docs/cdkguide/en/src/main/docbook/modules/pcreate.xml Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/ccreate.xml trunk/docs/cdkguide/en/src/main/docbook/includes/pcreate.xml trunk/docs/cdkguide/en/src/main/docbook/master.xml trunk/docs/cdkguide/en/src/main/docbook/modules/setup.xml Log: http://jira.jboss.com/jira/browse/RF-3692 - Creating project for component,= Creating and building component sections were added Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/ccreate.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/ccreate.xml 2008-07-09= 15:55:52 UTC (rev 9493) +++ trunk/docs/cdkguide/en/src/main/docbook/includes/ccreate.xml 2008-07-09= 16:54:10 UTC (rev 9494) @@ -11,8 +11,48 @@ Creating and building component - Simple component (panel maybe) TBD + Let's create a skeleton for the <inputDate> component. + + You need to go to the inputDate directory and = then launch the following command: = + + + + + As a result three artifacts will be created: + + + + + An XML configuration file for the metadata = + + + + + A UI class = + + + + + A JSP-like template = + + + + + In order to build the component you should stay in the i= nputDate directory = + and launch the following command: = + + + + + This command generates and compiles the library and then creates a= result JAR file. = + A directory named target will be created alon= g with a src directory. = + If you get a file named target/mylib-1.0-SNAPSHOT.jar, everything is set up successfully. = + = = Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/pcreate.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/pcreate.xml 2008-07-09= 15:55:52 UTC (rev 9493) +++ trunk/docs/cdkguide/en/src/main/docbook/includes/pcreate.xml 2008-07-09= 16:54:10 UTC (rev 9494) @@ -11,9 +11,73 @@ Creating project for component - Web Resources + At first we need to create a project for the component itself. In t= he library directory = + Sandbox you just created launch the following= command (all in one line): - + + + + As is easy to see a new directory with the name inputDat= e will be created. = + It does not have any components in it yet, but it has this predefi= ned structure: + +
+ The project structure + = + + + + +
+ + Here are main directories with descriptions: + + + The project structure + + + + Directory + Description + + + + + + src/main/config + + + Contains the metadata for the components + + + + + src/main/java + + + Contains Java code (both pre-generated and created= by you) + + + + + src/main/resources + + + Used to store resource files, such as pictures, Ja= vaScript and CSS files + + + + + src/main/templates + + + Used to contain the JSP-like templates that define= the component layout + + + + +
= = Modified: trunk/docs/cdkguide/en/src/main/docbook/master.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/master.xml 2008-07-09 15:55:52 = UTC (rev 9493) +++ trunk/docs/cdkguide/en/src/main/docbook/master.xml 2008-07-09 16:54:10 = UTC (rev 9494) @@ -43,7 +43,6 @@ = = @@ -64,10 +63,16 @@ inputDate component development - Some info + We a going to create the <inp= utDate> + component that can take a value, process that value, and then push= it + back to the underlying model as a strongly typed Date object. - - + + The <inputDate>= component allows to attach + a converter in order to set the desired date format such as mm/dd/yyyy. So the component = + could convert and validate the date entered by user. = + + = &pcreate; &ccreate; &protoui; Deleted: trunk/docs/cdkguide/en/src/main/docbook/modules/pcreate.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/modules/pcreate.xml 2008-07-09 = 15:55:52 UTC (rev 9493) +++ trunk/docs/cdkguide/en/src/main/docbook/modules/pcreate.xml 2008-07-09 = 16:54:10 UTC (rev 9494) @@ -1,19 +0,0 @@ - - - - - - project - component - CDK - Guide - - - Creating project for component - - Web Resources - - - - - Modified: trunk/docs/cdkguide/en/src/main/docbook/modules/setup.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/modules/setup.xml 2008-07-09 15= :55:52 UTC (rev 9493) +++ trunk/docs/cdkguide/en/src/main/docbook/modules/setup.xml 2008-07-09 16= :54:10 UTC (rev 9494) @@ -134,7 +134,7 @@ xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0.0 http://maven= .apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 org.mycompany - mylib-parent + sandbox http://mycompany.org 1.0-SNAPSHOT pom @@ -154,7 +154,7 @@ org.richfaces.ui richfaces-ui - 3.1.0 + 3.2.1 @@ -162,7 +162,44 @@ = - = - = - = + + Here are some of these elements with descriptions: + + + The POM elements + + + + Element + Description + + + + + + groupId + + + Prefix for the Java package structure of your libr= ary + + + + + url + + + Namespace for your library to be used in the TLD f= ile + + + + + version + + + Version of your library + + + + +
\ No newline at end of file Added: trunk/docs/cdkguide/en/src/main/resources/images/tree.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/docs/cdkguide/en/src/main/resources/images/tree.= png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream --===============3231530285239914611==--