From richfaces-svn-commits at lists.jboss.org Wed Jul 16 07:43:39 2008 Content-Type: multipart/mixed; boundary="===============0169954583521509711==" 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: r9630 - trunk/docs/userguide/en/src/main/docbook/included. Date: Wed, 16 Jul 2008 07:43:39 -0400 Message-ID: --===============0169954583521509711== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: atsebro Date: 2008-07-16 07:43:39 -0400 (Wed, 16 Jul 2008) New Revision: 9630 Modified: trunk/docs/userguide/en/src/main/docbook/included/componentControl.xml Log: RF-3100:rich:componentControl rewrite Modified: trunk/docs/userguide/en/src/main/docbook/included/componentContro= l.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/userguide/en/src/main/docbook/included/componentControl.xml = 2008-07-16 07:22:19 UTC (rev 9629) +++ trunk/docs/userguide/en/src/main/docbook/included/componentControl.xml = 2008-07-16 11:43:39 UTC (rev 9630) @@ -80,16 +80,98 @@ ]]> = + + + + +
Details of Usage - In order to use the <rich:compo= nentControl> with another components you need to t= ake the following steps: + <rich:componentControl> = + is a command component, that allows to call JavaScript API function = on some defined event. = + Look at the example: + + +... +]]> + + In other words it means "clicking on the component with ID &apo= s;doExpandCalendarID', = + expands the component with ID 'ccCalendarID'". = + It can be said, that <rich:comp= onentControl> = + connects two components with the help of JavaScript API function. + + + Component ID, to wich the event, that invokes JavaScript API functio= n is applied, = + is defined with "attachTo"<= /emphasis> attribute = + (see the exapmle above). = + If "attachTo" at= tribute is not defined, = + the component will be attached to the parent component. + + + Example: + + + + +... +]]> + + On the result page the component is rendered to JavaScript code. = + This means, that it is possible to invoke the <rich:componentControl> = + handler operation as usual JavaScript function. = + This function is called by name, specified in the component "name" attribute. = + The definition of "name" attribute is shown on the example below: + + +... +]]> + + The generated JavaScript function will look as shown below: + + + + An important <rich:componentC= ontrol> feature, = + is that it allows transferring parameters, with the help of specia= l attribute "params". + + + Example: + + +... +]]> + + The alternative way for parameters transferring uses <f:param> attribute. = + As the code above, the following code will represent the same functi= onality. + + + Example: + + + + +... +]]> = - + = + = + = + = + = + = + = + = + = + + = + = + = + = With the help of the "attachTiming" attribute you can define the page loading phase when <rich:componentControl> is attached to source component. Possible values are: = --===============0169954583521509711==--