=
-
- Creating on a page
- ]]>
-
+
+ Creating on a page
+ =
]]>
+
=
-
- Creating the Component Dynamically Using Java
-
+ Creating the Component Dynamically Using Java=
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=
link>.
-
-
- 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.
+
--===============5679603072039206515==--