Author: cluts
Date: 2009-01-09 05:57:27 -0500 (Fri, 09 Jan 2009)
New Revision: 12172
Modified:
trunk/docs/userguide/en/src/main/docbook/included/queue.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/queue.xml
Log:
RF-4664 - the information has been updated, the link has been added.
Modified: trunk/docs/userguide/en/src/main/docbook/included/queue.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/queue.desc.xml 2009-01-09 10:55:49
UTC (rev 12171)
+++ trunk/docs/userguide/en/src/main/docbook/included/queue.desc.xml 2009-01-09 10:57:27
UTC (rev 12172)
@@ -7,7 +7,7 @@
</keywordset>
</sectioninfo>
<title>Description</title>
- <para>The <emphasis
role="bold"><property><a4j:queue></property></emphasis>
component creates queues of requests of Ajax request.
+ <para>The <emphasis
role="bold"><property><a4j:queue></property></emphasis>
component creates queues of the Ajax requests.
With the help of this component other Ajax4JSF or RichFaces components can
reference and use it.</para>
<para>By means of the attributes of this component you can manage server
requests of the components, which refered to it.</para>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/queue.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/queue.xml 2009-01-09 10:55:49 UTC
(rev 12171)
+++ trunk/docs/userguide/en/src/main/docbook/included/queue.xml 2009-01-09 10:57:27 UTC
(rev 12172)
@@ -37,22 +37,12 @@
<section>
<title>Creating on a page</title>
- <para>There is possibility of the creation as a named queue so and a queue
with the default name.
+ <para>There is possibility of the creation several types of the queue. The
additional information about them you can find <link
linkend="QueuePrinciples">here</link>.
You can reference the named queue only from such components which have
<emphasis><property>"eventsQueue"</property></emphasis>
attribute.</para>
- <para>So, the following example helps to create the named
queue.</para>
+ <para>So, the following example is the easiest example of the
queue's creation .</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML"><![CDATA[<a4j:queue
name="myQueue" ... />
-...
-<h:inputText value="#{myQueue.text}">
- <a:support id="onblur" event="onblur"
eventsQueue="myQueue"/>
-</h:inputText>
-...>]]></programlisting>
- <para>See the example of the creation the default queue
below.</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
<programlisting role="XML"><![CDATA[<h:form>
...
<a4j:queue/>
@@ -76,89 +66,12 @@
<section>
<title>Key attributes and ways of usage</title>
<para>It's possible by means of the <emphasis
role="bold"><property><a4j:queue></property></emphasis>
component to create the several types of the queues. The information about it you can find
here.</para>
- <!-- <itemizedlist>
- <listitem>
- <para>
- So that to create a global queue you should add the following code
into your "web.xml" file. In this instance the queue can be used for the
all pages and all components of these pages.
- </para>
- <para>
- You can define only one global queue.
- </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>
- By default the global queue is disabled. In order to enable or
disable the queue the value of the
"<code>org.richfaces.global_queue</code>" parameter should
be "true" or "false" accordingly.
- </para>
- <programlisting role="XML"><![CDATA[<a4j:queue
name="org.richfaces.global_queue" disabled="false"...
/>]]></programlisting>
- </listitem>
- <listitem>
- <para>
- You can create a separate queue for a 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 is the queue only for this form. The queue's name
don't define by default if you haven't defined it.
- </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 name="myQueue" ... />
- ...
-</a4j:form>]]></programlisting>
- <para>If you use the <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="myQueue" ...>
- ...
- </a4j:form>]]></programlisting>
- </listitem>
- <listitem>
- <para>With the help of the
<emphasis><property>"eventsQueue"</property></emphasis>
attribute you 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="myQueue" ... />
-...
-<h:inputText value="#{queueBean.text}">
- <a4j:support id="onblur" event="onblur"
eventsQueue="myQueue"/>
-</h:inputText>
-
-<a4j:commandButton eventsQueue="myQueue" ...
>]]></programlisting>
- <para>
- As a result all requests generated after the
"onblur" event of the <emphasis
role="bold"><property><h:inputText></property></emphasis>
component, and clicking of the <emphasis
role="bold"><property><h:commandButton></property></emphasis>
will be funneled through the <code>"myQueue"</code>.
- </para>
- <para>
- If you try to refer to the nonexistent queue the new named queue will
be created with all default settings.
- </para>
- </listitem>
- </itemizedlist>-->
<para>In order to disable or enable the <emphasis
role="bold"><property><a4j:queue></property></emphasis>
component on the page you can use the
<emphasis><property>"disabled"</property></emphasis>
attribute.</para>
<para>
The
<emphasis><property>"size"</property></emphasis>
attribute helps you to set the number of requests allowed in the queue at one time.
</para>
<para>
- The
<emphasis><property>"sizeExceededBehavior"</property></emphasis>
attribute defines four strategies of the queue's behavior if the number of the
requests waiting in the queue is exceeded:
+ The
<emphasis><property>"sizeExceededBehavior"</property></emphasis>
attribute defines the strategies of the queue's behavior if the number of the
requests waiting in the queue is exceeded:
</para>
<itemizedlist>
<listitem>
@@ -174,6 +87,7 @@
<para>fireNew - immediately fires the incoming
request.</para>
</listitem>
</itemizedlist>
+ <para>You can use this attribute only if the
<emphasis><property>"size"</property></emphasis>
attribute's value has been set.</para>
<para>
The example of the usage this attribute you can find below.
</para>
@@ -183,7 +97,7 @@
</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <a4j:queue sizeExceededBehavior="dropNext" requestDelay="5000"
... />
+ <a4j:queue size="4" sizeExceededBehavior="dropNext" ... />
...]]></programlisting>
<para>
The
<emphasis><property>"requestDelay"</property></emphasis>
attribute defines delay time for all the requests which fired using this queue.
Show replies by date