[richfaces-svn-commits] JBoss Rich Faces SVN: r11516 - trunk/docs/userguide/en/src/main/docbook/included.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Wed Dec 3 08:55:09 EST 2008
Author: cluts
Date: 2008-12-03 08:55:09 -0500 (Wed, 03 Dec 2008)
New Revision: 11516
Modified:
trunk/docs/userguide/en/src/main/docbook/included/queue.xml
Log:
RF-4664 - Descriptions of the attributes and the new information in the "Key attributes and ways of usage" section have been added;
Modified: trunk/docs/userguide/en/src/main/docbook/included/queue.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/queue.xml 2008-12-03 13:54:35 UTC (rev 11515)
+++ trunk/docs/userguide/en/src/main/docbook/included/queue.xml 2008-12-03 13:55:09 UTC (rev 11516)
@@ -56,12 +56,99 @@
<programlisting role="JAVA"><![CDATA[import org.ajax4jsf.component.html.HtmlQueue;
...
HtmlQueue myQueue = new HtmlQueue();
-...]]></programlisting>
+]]></programlisting>
</section>
<section>
<title>Key attributes and ways of usage</title>
-
+ <para>By means of the <emphasis role="bold"><property><a4j:queue></property></emphasis> component a user can create several types of queues associated with it.</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ A user can set a queue globally in "web.xml". You don't need set the queue on the page itself. The global queue can be used by all components. Example you can see below:
+ </para>
+ <programlisting role="XML"><![CDATA[<context-param>
+ <param-name>org.richfaces.queue.global.enabled</param-name>
+ <param-value>true</param-value>
+ </context-param>]]></programlisting>
+ <para>
+ The global queue can be disabled for specifically view's application.
+ </para>
+ <para>
+ In order to enable/disable a global queue see the following examples:
+ </para>
+ <programlisting role="XML"><![CDATA[<a4j:queue name="org.richfaces.global_queue" disabled="false"... />]]></programlisting>
+ <para>
+ or:
+ </para>
+ <programlisting role="XML"><![CDATA[<a4j:queue name="org.richfaces.global_queue" disabled="true"... />]]></programlisting>
+ </listitem>
+ <listitem>
+ <para>
+ A user can create separate queue for specific form with the help of the <emphasis role="bold"><property><a4j:form></property></emphasis> or <emphasis role="bold"><property><h:form></property></emphasis> tags.
+ It will be the global queue only for this form.
+ </para>
+ <para>
+ <emphasis role="bold">
+ Example:
+ </emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[<h:form ... >
+ ...
+ <a4j:queue ... />
+ ...
+ </h:form>]]></programlisting>
+ <para>
+ or:
+ </para>
+ <para>
+ <emphasis role="bold">
+ Example:
+ </emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[<a4j:form ... >
+ ...
+ <a4j:queue <a4j:queue name="fooQueue" ... />
+ ...
+</a4j:form>]]></programlisting>
+ <para>If you use <emphasis role="bold"><property><a4j:form></property></emphasis> tag, you can reference a named queue as the form's default.</para>
+ <para>
+ <emphasis role="bold">
+ Example:
+ </emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[<a4j:form eventsQueue="fooQueue" ...>
+ ...
+ </a4j:form>]]></programlisting>
+ </listitem>
+ <listitem>
+ <para>With the help of the <emphasis><property>"eventsQueue"</property></emphasis> attribute a user can reference a named queue from any <emphasis role="bold"><property>a4j</property></emphasis> or <emphasis role="bold"><property>rich</property></emphasis> component that supports this attribute.</para>
+ <para>
+ <emphasis role="bold">
+ Example:
+ </emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[<a4j:queue name="fooQueue" ... />
+...
+<h:inputText value="#{foo2.bar1}">
+ <a:support id="onblur" event="onblur" reRender="bar21" eventsQueue="fooQueue"/>
+</h:inputText>
+
+<a4j:commandButton eventsQueue="fooQueue" ... >]]></programlisting>
+ <para>
+ As a result all requests generated through the onblur of the <emphasis><property><h:inputText></property></emphasis> component, and clicking of the <emphasis><property><h:commandButton></property></emphasis> will be funneled through the <code>"fooQueue"</code>.
+ </para>
+ <para>
+ If you have a try to reference a nonexistent queue a new named queue will be created with all default settings.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The <emphasis><property>"size"</property></emphasis> attribute help you to set the number of items allowed in the queue at one time.
+ </para>
+ <para>
+
+ </para>
</section>
<section>
More information about the richfaces-svn-commits
mailing list