Author: ochikvina
Date: 2007-10-19 09:07:17 -0400 (Fri, 19 Oct 2007)
New Revision: 3452
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
Log:
http://jira.jboss.com/jira/browse/RF-389 - adding info to FAQ 9.34.
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2007-10-19 13:05:41 UTC
(rev 3451)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2007-10-19 13:07:17 UTC
(rev 3452)
@@ -547,8 +547,33 @@
<section>
<?dbhtml
filename="HowtoloadtheScriptaculouslibrary.html"?>
<title>How to load the Scriptaculous library?</title>
- <para>To load the Scriptaculous library shipped with RichFaces use
<emphasis
+ <para>To load the whole Scriptaculous library shipped with
RichFaces use <emphasis
role="bold"><a4j:loadScript></emphasis>
tag.</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<a4j:loadScript src="resource://scriptaculous.js" />
+...
+]]></programlisting>
+ <para>
+ Thus, this command allows loading an integrated version of the
library that includes all existing scriptaculous files except unittest.js.
+ </para>
+ <para>
+ If you don't want to load the whole library, but only
the particular file, for example, effect.js, use the following line:
+ </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<a4j:loadScript src="resource://scriptaculous/effect.js" />
+...
+]]></programlisting>
+ <para>
+ Remember, it does not make sense to load the particular file if
you already load the whole version.
+ </para>
+
<para>For more information see <ulink
url="http://www.jboss.com/index.html?module=bb&op=viewtopic&...
RichFaces Users Forum</ulink>.</para>