From richfaces-svn-commits at lists.jboss.org Fri Jul 10 08:01:19 2009 Content-Type: multipart/mixed; boundary="===============1741329135290343539==" 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: r14877 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included. Date: Fri, 10 Jul 2009 07:44:13 -0400 Message-ID: <200907101144.n6ABiD8l006677@svn01.web.mwc.hst.phx2.redhat.com> --===============1741329135290343539== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: atsebro Date: 2009-07-10 07:44:12 -0400 (Fri, 10 Jul 2009) New Revision: 14877 Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/loa= dScript.xml Log: RF-7483:a4j:loadScript component description review Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/inclu= ded/loadScript.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 --- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/lo= adScript.xml 2009-07-10 11:13:58 UTC (rev 14876) +++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/lo= adScript.xml 2009-07-10 11:44:12 UTC (rev 14877) @@ -36,7 +36,7 @@ =
- Creating on a page + Creating the Component with a Page Tag To create the simplest variant on a page use the following synta= x: = @@ -58,28 +58,29 @@ ]]>
- Key attributes and ways of usage + Details of usage - As it was mentioned above this c= omponent returns its value as the value of = - the "src" attrib= ute passing it to the - getResourceURL() method of the ViewHandler for this app= lication, and passing = - the result through the encodeResourceURL() method of th= e ExternalContext. + The main attribute of the <= a4j:loadScript> is "src&q= uot;, wich defines the context relative path to the s= cript. = + The value of the attribute does not require a prefix of an appli= cation. = + Leading slash in the path means the root of the web context. + It is also possible to use resource:/// prefix to a= ccess the script file using RichFaces resource framework. - - It means that the Context is inserts automatically to the link. And c= alls - like resource:// is properly handled. - - - Except this - you may be free to put your script links right from the= child = - page while using facelets templates. - + + Example: + + ]]> + + The "src" attribute passses value to the getResourceURL() method of = the ViewHandler of the application, = + The result is passed through the encodeResourceURL()= method of the ExternalContext. = + + = + =
=
Relevant resources links - On the component LiveDemo page you can see t= he example of <a4j:loadScript> usage and so= urces for the given example. + Vizit the Script page at RichFaces LiveDemo for examples of component usage abd their sources.
= --===============1741329135290343539==--