Author: vkorluzhenko
Date: 2007-11-13 13:43:00 -0500 (Tue, 13 Nov 2007)
New Revision: 3968
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
Log:
http://jira.jboss.com/jira/browse/RF-1042 - Added new section "Iteration components
Ajax attributes". Added description for "ajaxKeys""ajaxKeys",
"timeout", "onbeforedomupdate". Added examples and improved
description for "ajaxSingle" and "limitToList" attributes.
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-11-13
18:42:57 UTC (rev 3967)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-11-13
18:43:00 UTC (rev 3968)
@@ -259,8 +259,19 @@
<property>"false"</property> means to update only
the area(s) that
mentioned in the <emphasis/>"reRender"<property/>
attribute explicitly.
All output panels with
-
"ajaxRendered"=<property>"true"</property>
will be
- ignored.</para>
+
"ajaxRendered"=<property>"true"</property>is
ignored. An
+ example is placed below:</para>
+
+ <programlisting role="XML"><![CDATA[...
+ <h:form>
+ <h:inputText value="#{person.name}">
+ <a4j:support event="onkeyup" reRender="test"
limitToList="true"/>
+ </h:inputText>
+ <h:outputText value="#{person.name}" id="test"/>
+ </form>
+...
+]]></programlisting>
+
</section>
<section id="QueueandTrafficFloodProtection">
@@ -322,6 +333,11 @@
<para>More information can be found on the <ulink
url="http://jboss.com/index.html?module=bb&op=viewtopic&...
RichFaces Users Forum</ulink>.</para>
+
+ <para><emphasis>
+ <property>"timeout"</property>
+ </emphasis> attribute is used for setting response waiting time on a
particular request. If
+ a response is not received during this time, the request is
aborted.</para>
</section>
<section id="DataProcessingOptions">
@@ -341,8 +357,21 @@
</emphasis> or <emphasis role="bold">
<property><a4j:action></property>
</emphasis> param values if any) to the request map. In case of
<emphasis role="bold">
- <property>a4j:support</property>
- </emphasis>, it will be a value of the parent component.</para>
+ <property><a4j:support></property>
+ </emphasis>, it is a value of the parent component. An example is placed
below:</para>
+
+ <programlisting role="XML"><![CDATA[...
+ <h:form>
+ <h:inputText value="#{person.name}">
+ <a4j:support event="onkeyup" reRender="test"
ajaxSingle="true"/>
+ </h:inputText>
+ <h:inputText value="#{person.middleName}"/>
+ </form>
+...
+]]></programlisting>
+ <para>In this example the request contains only the input component causes
the request
+ generation, not all the components contained on a form, because of
+
"ajaxSingle"=<property>"true"</property>
usage.</para>
<para>Note, that
"ajaxSingle"=<property>"true"</property>
reduces the upcoming traffic, but does not prevent decoding other input
components on the
server side. Some JSF components, such as <emphasis role="bold">
@@ -420,6 +449,7 @@
Otherwize, the application proceeds to the next page. Make sure, you define
<redirect/> option for the navigation rule to avoid memory
leaks.</listitem>
</itemizedlist>
+ <para> </para>
</section>
<section id="JavascriptInteractions">
@@ -467,6 +497,11 @@
will not point the component where Ajax request was initiated.</para>
<para><emphasis>
+ <property>"onbeforedomupdate"</property>
+ </emphasis> attrubute defines JavaScript code for call after Ajax response
receiving and
+ before updating DOM on a client side.</para>
+
+ <para><emphasis>
<property>"data"</property>
</emphasis> attribute allows to get the additional data from the server
during an Ajax call.
You can use JSF EL to point the property of the managed bean and its value will
be
@@ -485,6 +520,39 @@
</emphasis>.</para>
</section>
+ <section id="IterationcomponentsAjaxattributes">
+ <?dbhtml filename="IterationcomponentsAjaxattributes.html"?>
+ <title>Iteration components Ajax attributes</title>
+ <para><emphasis>
+ <property>"ajaxKeys"</property>
+ </emphasis> attribute defines strings that are updated after an Ajax
request. It provides
+ possibility to update several child components separately without updating the
whole page.</para>
+
+ <programlisting role="XML"><![CDATA[...
+ <a4j:poll intervall="1000" action="#{repeater.action}"
reRender="text">
+ <table>
+ <tbody>
+ <a4j:repeat value="#{bean.props}" var="detail"
ajaxKeys="#{repeater.ajaxedRowsSet}">
+ <tr>
+ <td>
+ <h:outputText value="detail.someProperty"
id="text"/>
+ </td>
+ </tr>
+ </a4j:repeat>
+ </tbody>
+ </table>
+ </a4j:poll>
+...
+]]></programlisting>
+
+ </section>
+
+ <!--section id="Otherusefulattributes">
+ <?dbhtml filename="Otherusefulattributes.html"?>
+ <title>Other useful attributes</title>
+
+ </section-->
+
</section>
<section id="HowTo...">