Author: vkorluzhenko
Date: 2007-10-23 06:44:35 -0400 (Tue, 23 Oct 2007)
New Revision: 3485
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
Log:
http://jira.jboss.com/jira/browse/RF-389 - added question.
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2007-10-23 10:15:19 UTC
(rev 3484)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCfaq.xml 2007-10-23 10:44:35 UTC
(rev 3485)
@@ -549,7 +549,7 @@
<title>How to load the Scriptaculous library?</title>
<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>
@@ -557,23 +557,20 @@
<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>
- 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> 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>
@@ -590,6
+587,32 @@
core effects</ulink> in scriptaculous.</para>
</section>
+ <section>
+ <?dbhtml filename="Howtosaveeffectstatus.html"?>
+ <title>How to send an additional parameter to server working with
+ <rich:suggestionbox>?</title>
+ <para>An example is placed below:</para>
+ <programlisting role="XML"><![CDATA[...
+ <rich:suggestionbox width="200" height="200"
for="test" suggestionAction="#{bean.autocomplete}"
var="cap">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText
value="Sometext"></h:outputText>
+ </f:facet>
+ <h:outputText
value="#{cap.text}"></h:outputText>
+ </h:column>
+ <a4j:support event="onselect"
action="#{bean.action}">
+ <f:setPropertyActionListener
value="#{cap.label}" target="#{bean.property1}" />
+ </a4j:support>
+ </rich:suggestionbox>
+...
+]]></programlisting>
+ <para>In the example
<property>"onselect"</property> event is used for sending
selected
+ value to the server. It's also possible to pass
additional fields
+ of selected object (which don't belong to
<emphasis>
+
<property>"fetchvalue"</property>
+ </emphasis> attribute.)</para>
+ </section>
+
<section id="DecidingWhatToChangeOnTheServerSide">
<?dbhtml
filename="DecidingWhatToChangeOnTheServerSide.html"?>
<title>What should I change on the server side?</title>