From richfaces-svn-commits at lists.jboss.org Tue Jul 29 11:06:07 2008 Content-Type: multipart/mixed; boundary="===============6999762095417349459==" 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: r9818 - trunk/docs/cdkguide/en/src/main/docbook. Date: Tue, 29 Jul 2008 11:06:03 -0400 Message-ID: --===============6999762095417349459== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: artdaw Date: 2008-07-29 11:06:03 -0400 (Tue, 29 Jul 2008) New Revision: 9818 Modified: trunk/docs/cdkguide/en/src/main/docbook/master.xml Log: https://jira.jboss.org/jira/browse/RF-3783 - Creating a Renderer section fi= xed 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-29 13:38:19 = UTC (rev 9817) +++ trunk/docs/cdkguide/en/src/main/docbook/master.xml 2008-07-29 15:06:03 = UTC (rev 9818) @@ -84,15 +84,26 @@ Creating a Renderer - Renderer is responsible for the JSF component represent= ation. It generates the + + Component functionality typically centers around two actions: = + decoding and encoding data. = + Decoding is the process of converting incoming request parameters to th= e values of the component. = + Encoding is converting the current values of the component into the cor= responding markup. In the + following figure you can see decoding and encoding occur in the JSF lif= ecycle: + + + + Thus, JSF components consist of two parts: the component class= and the renderer. + The component class is responsible for the state an= d behavior of a UI component and will be discussed later in the &= quot;Configuring component" section. + + The Renderer is responsible for the= JSF component representation. It generates the appropriate client-side markup, such as HTML, WML, XUL, et= c. Renderer is also responsible for the converting information coming from the= client to the proper type for the component (for example, a string value from the re= quest is converted to a - strongly type Date object). + strongly type Date object). = + - It is necessary to create following renderer classes for the - <inputDate> - component: + It is necessary to create following renderer classes for the <inputDate> component: --===============6999762095417349459==--