From richfaces-svn-commits at lists.jboss.org Fri Jul 10 12:06:38 2009 Content-Type: multipart/mixed; boundary="===============0048052015033285259==" 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: r14894 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included. Date: Fri, 10 Jul 2009 11:49:29 -0400 Message-ID: <200907101549.n6AFnTX2022355@svn01.web.mwc.hst.phx2.redhat.com> --===============0048052015033285259== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: atsebro Date: 2009-07-10 11:49:29 -0400 (Fri, 10 Jul 2009) New Revision: 14894 Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/loa= dStyle.desc.xml branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/loa= dStyle.xml Log: RF-7484:a4j:loadStyle component description review Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/inclu= ded/loadStyle.desc.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= adStyle.desc.xml 2009-07-10 15:48:33 UTC (rev 14893) +++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/lo= adStyle.desc.xml 2009-07-10 15:49:29 UTC (rev 14894) @@ -1,15 +1,15 @@ -
- - - loadStyle - - - = - Description - - The component Inserts stylesheet links to the head element. Render the = value of the component, after passing it to the getResourceURL() method of the ViewHandler for this application, and passing the result t= hrough the encodeResourceURL() method of the ExternalContext. = - -
+
+ + + loadStyle + + + Description + + The <a4j:loadStyle&= gt; component allows to load a style sheet file from = alternative sources like a jar file, etc. = + It inserts stylesheet links to the head element. = + +
\ No newline at end of file Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/inclu= ded/loadStyle.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= adStyle.xml 2009-07-10 15:48:33 UTC (rev 14893) +++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/lo= adStyle.xml 2009-07-10 15:49:29 UTC (rev 14894) @@ -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: = @@ -57,29 +57,31 @@ ... ]]>
-
- Key attributes and ways of usage - - As it was mentioned above this co= mponent 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 via the encodeResourceURL() method of the Ex= ternalContext. - - - It means that the Context is inserted automatically to the link. And = calls - like resource:// is properly handled. - - - Except this - you may be free to put your stylesheet links right from= the child = - page while using facelets templates. - -
-
- Relevant resources links - - Some additional information about usage of component can be found = - on the component Live Demo page. - -
= +
+ Details of usage + + The main attribute of the <a4j:loadStylet> is &qu= ot;src", wich defines the context relative path = to the script. = + The value of the attribute does not require a prefix of = an application. = + Leading slash in the path means the root of the web cont= ext. + It is also possible to use resource:/// pre= fix to access the script file using RichFaces resource framework. + + + Example: + + ]]> + + The "src" attribute passses value to the getResourceURL() method o= f the ViewHandler of the application, = + The result is passed through the encodeResourceURL= () method of the ExternalContext. = + + = +
+ = +
+ Relevant resources links + + Vizit the Script page at RichFaces LiveD= emo for examples of component usage abd their sources. + +
+ = = \ No newline at end of file --===============0048052015033285259==--