From richfaces-svn-commits at lists.jboss.org Fri Aug 15 11:44:29 2008 Content-Type: multipart/mixed; boundary="===============1227812507775208656==" MIME-Version: 1.0 From: richfaces-svn-commits at lists.jboss.org To: richfaces-svn-commits at lists.jboss.org Subject: [richfaces-svn-commits] JBoss Rich Faces SVN: r10119 - trunk/docs/userguide/en/src/main/docbook/included. Date: Fri, 15 Aug 2008 11:44:28 -0400 Message-ID: --===============1227812507775208656== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: atsebro Date: 2008-08-15 11:44:28 -0400 (Fri, 15 Aug 2008) New Revision: 10119 Modified: trunk/docs/userguide/en/src/main/docbook/included/push.xml Log: RF-4109: a4j:push and timeout attribute. Correcting the guide. Modified: trunk/docs/userguide/en/src/main/docbook/included/push.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/docs/userguide/en/src/main/docbook/included/push.xml 2008-08-15 1= 4:56:57 UTC (rev 10118) +++ trunk/docs/userguide/en/src/main/docbook/included/push.xml 2008-08-15 1= 5:44:28 UTC (rev 10119) @@ -1,78 +1,80 @@
- - - a4j:push - - - - Component identification parameters - - - - Name - Value - - - - - component-type - org.ajax4jsf.Push - - - component-family - org.ajax4jsf.components.AjaxPush - - - component-class - org.ajax4jsf.component.html.AjaxPush - - - renderer-type - org.ajax4jsf.components.AjaxPushRenderer - - - -
+ + + a4j:push + + + + Component identification parameters + + + + Name + Value + + + + + component-type + org.ajax4jsf.Push= + + + component-family<= /entry> + org.ajax4jsf.comp= onents.AjaxPush + + + component-class + org.ajax4jsf.comp= onent.html.AjaxPush + + + renderer-type + org.ajax4jsf.comp= onents.AjaxPushRenderer + + + +
= -
- Creating on a page - ]]> -
+
+ Creating on a page + = ]]> +
= -
- Creating the Component Dynamically Using Java - + Creating the Component Dynamically Using Java</= title> + <programlisting role=3D"JAVA"><![CDATA[import org.ajax= 4jsf.component.html.AjaxPush; ... AjaxPush myPush =3D new AjaxPush(); ...]]></programlisting> - </section> + </section> = = - <section> - <title>Key attributes and ways of usage - The - <a4j:push> - implements reverse Ajax technique. +
+ Key attributes and ways of usage + The + <a4j:push> + implements reverse Ajax techniqu= e. = - The bean, for example, could be subscribed to Java Messaging Ser= vice (JMS) topic or it= could be implemented as - Message Driven Bean (MDB) in order to send a message to the - <a4j:push> - component about an event presence. In the presence of th= e event some action - occurs. + The bean, for example, could be subscribed to Ja= va Messaging Service + (JMS) + topic or it could be implemented as Message = Driven Bean (MDB) in order + to send a message to the + <a4j:push> + component about an event presenc= e. In the presence of the + event some action occurs. = - Thus, a work paradigm with the - <a4j:push> - component corresponds to an anisochronous model, but not= to pools as for - <a4j:poll> - component. See the simples= t example below: + Thus, a work paradigm with the + <a4j:push> + component corresponds to an anis= ochronous model, but not + to pools as for + <a4j:poll> + + component. See= the simplest example below: = - - Example: - - + Example: + + = - Code for EventListener registration in the bean is = placed below: - - Example: - - Code for EventListener registration= in the bean is placed + below: + + Example: + + = - A page code for this example is placed below. + A page code for this example is placed below. = - - Example: - - + Example: + + @@ -115,32 +118,37 @@ ... = ]]> = - The example shows how date is updated on a page in compliance wi= th data taken from a - server. In the example - "interval" - attribute has value "2000". This attribute def= ines an interval - in milliseconds between the previous response and the next request. = Default value is set to - "1000" milliseconds (1 second). It's possible to set = value equal to - "0". In this case connection is permanent. - The - "timeout" - attribute defines response waiting time in milliseconds.= If a response - isn't received during this period a connection is aborted and t= he next request is - sent. Default value for - "timeout" - attribute isn't set. Usage of - "interval" - and - "timeout" - attributes gives an opportunity to set short polls of qu= eue state or long - connections, or permanent connection. + The example shows how date is updated on a page = in compliance with data + taken from a server. In the example + "interval" + attribute has value "2000&q= uot;. This + attribute defines an interval in millisecond= s between the previous + response and the next request. Default value= is set to + "1000" milliseconds (1 second). It= 's + possible to set value equal to "0"= . In this case + connection is permanent. + The + "timeout" + attribute defines response waiti= ng time in milliseconds. + If a response isn't received during thi= s period a connection + is aborted and the next request is sent. Def= ault value for + "timeout" + attribute isn't set. Usage = of + "interval" + and + "timeout" + attributes gives an opportunity = to set short polls of + queue state or long connections. = - Note: The form around the - <a4j:push> - component is required. -
+ + Note: + The form around the + <a4j:push&g= t; + component is required.= + +
= - - - Information about the "process" attribute usage you can find here. - -
- Relevant resources links - - Here - you can found some additional information for - <a4j:push> - component usage. -
+ Information about the + "process" + attribute usage you can find here. +
+ Relevant resources links + + Here you can found some a= dditional information for + + <a4j:push> + component usage. +
--===============1227812507775208656==--