Author: ilya_shaikovsky
Date: 2010-05-20 05:13:40 -0400 (Thu, 20 May 2010)
New Revision: 17153
Removed:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/ajax.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/commandButton.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/commandLink.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/jsFunction.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/log.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/mediaOutput.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/push.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/status.xhtml
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/commandButton/commandButton.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/commandLink/commandLink.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/jsFunction/jsFunction.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/log/log.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/mediaOutput/imgUsage.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel/simple.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/push/push.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/status/referencedusage.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/status/simple.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/status/viewusage.xhtml
Log:
https://jira.jboss.org/browse/RF-8663
Deleted: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/ajax.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/ajax.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/ajax.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -1,14 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:ui="http://java.sun.com/jsf/facelets"
-
xmlns:a4j="http://richfaces.org/a4j">
-
-<ui:composition template="/templates/component-sample.xhtml">
-
- <fieldset><legend>#{demoNavigator.currentSample.name}</legend>
<ui:include
- src="#{demoNavigator.sampleURI}" /></fieldset>
-</ui:composition>
-
-</html>
\ No newline at end of file
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/commandButton/commandButton.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/commandButton/commandButton.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/commandButton/commandButton.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -13,6 +13,10 @@
}
-->
</style>
+ <p>
+ The combination similar to h:commandButton with f:ajax. Inherits all
+ a4j:ajax special options.
+ </p>
<h:form>
<h:panelGrid columns="3">
<h:outputText value="Name:" />
Deleted:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/commandButton.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/commandButton.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/commandButton.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -1,20 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:ui="http://java.sun.com/jsf/facelets">
-
-<ui:composition template="/templates/main.xhtml">
- <ui:define name="body">
- <p>
- The combination similar to h:commandButton with f:ajax. Inherits all
- a4j:ajax special options.
- </p>
- <fieldset>
- <legend>commandButton Sample</legend>
- <ui:include src="/richfaces/button/usage.xhtml" />
- </fieldset>
- </ui:define>
-</ui:composition>
-
-</html>
\ No newline at end of file
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/commandLink/commandLink.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/commandLink/commandLink.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/commandLink/commandLink.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -12,7 +12,11 @@
font-weight: bold;
}
-->
- </style>
+ </style>
+ <p>
+ The combination similar to h:commandLink with f:ajax. Inherits all
+ a4j:ajax special options.
+ </p>
<h:form>
<h:panelGrid columns="3">
<h:outputText value="Name:" />
Deleted:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/commandLink.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/commandLink.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/commandLink.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -1,20 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:ui="http://java.sun.com/jsf/facelets">
-
-<ui:composition template="/templates/main.xhtml">
- <ui:define name="body">
- <p>
- The combination similar to h:commandLink with f:ajax. Inherits all
- a4j:ajax special options.
- </p>
- <fieldset>
- <legend>commandLink Sample</legend>
- <ui:include src="/richfaces/link/usage.xhtml" />
- </fieldset>
- </ui:define>
-</ui:composition>
-
-</html>
\ No newline at end of file
Deleted: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -1,17 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:ui="http://java.sun.com/jsf/facelets"
-
xmlns:rich="http://java.sun.com/jsf/composite/rich">
-
-<ui:composition template="/templates/main.xhtml">
- <ui:define name="body">
- <rich:toolBar items="#{viewController.tableToolBarItems}" />
- <p></p>
- <fieldset><legend>Table Edit Sample</legend> <ui:include
- src="/richfaces/dataTable/simpleTable.xhtml" /></fieldset>
- </ui:define>
-</ui:composition>
-
-</html>
\ No newline at end of file
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/jsFunction/jsFunction.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/jsFunction/jsFunction.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/jsFunction/jsFunction.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -6,6 +6,14 @@
xmlns:a4j="http://richfaces.org/a4j">
<ui:composition>
+
+ <p><b>a4j:jsFunction</b> component also designed to send Ajax
requests, but allows to perform
+ an the requests from a Javascript code directly. The component sends a request using
+ a standard JSF approach, so the JSF form is required. The following example
+ shows how the part of a page is re-rendered when a user hovers over the names.
+ </p>
+
+
<table width="400">
<tbody>
<tr>
Deleted:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/jsFunction.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/jsFunction.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/jsFunction.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -1,24 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:ui="http://java.sun.com/jsf/facelets">
-
-<ui:composition template="/templates/main.xhtml">
- <ui:define name="body">
-
- <p><b>a4j:jsFunction</b> component also designed to send Ajax
requests, but allows to perform
- an the requests from a Javascript code directly. The component sends a request using
- a standard JSF approach, so the JSF form is required. The following example
- shows how the part of a page is re-rendered when a user hovers over the names.
- </p>
-
-
- <fieldset>
- <legend>JS Function Sample</legend>
- <ui:include src="/richfaces/jsFunction/usage.xhtml" />
- </fieldset>
- </ui:define>
-</ui:composition>
-
-</html>
\ No newline at end of file
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/log/log.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/log/log.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/log/log.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -6,6 +6,11 @@
xmlns:a4j="http://richfaces.org/a4j">
<ui:composition>
+ <p>
+ Log component allows you to inspect client side activities
+ during an Ajax request. It shows reuqest data, response data, DOM
+ tree changes on update and other useful debug information.
+ </p>
<h:form>
<h:inputText value="#{userBean.name}" />
<a4j:commandButton value="Submit" render="out"/>
Deleted: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/log.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/log.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/log.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -1,21 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:ui="http://java.sun.com/jsf/facelets">
-
-<ui:composition template="/templates/main.xhtml">
- <ui:define name="body">
- <p>
- Log component allows you to inspect client side activities
- during an Ajax request. It shows reuqest data, response data, DOM
- tree changes on update and other useful debug information.
- </p>
- <fieldset>
- <legend>log Sample</legend>
- <ui:include src="/richfaces/log/usage.xhtml" />
- </fieldset>
- </ui:define>
-</ui:composition>
-
-</html>
\ No newline at end of file
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/mediaOutput/imgUsage.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/mediaOutput/imgUsage.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/mediaOutput/imgUsage.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -6,6 +6,29 @@
xmlns:a4j="http://richfaces.org/a4j">
<ui:composition>
+ <p>a4j:mediaOutput allows to generate images, video, sounds and other binary
+ resources defined by a user on-the-fly.
+ </p>
+ <p><b>createContent</b> attribute references to the method that will
be used
+ for content creating. The method accepts two parameters. The first parameter
+ has an OutputStream type. It is a reference to the steam that should be used for
output.
+ The second parameter is a reference to a 'value' attribute of the component.
+ </p>
+ <p>
+ <b>value</b> attribute references to data that can be used as input data
for a content
+ creator method. The data should be serializable because it is encoded to the URL
+ of the resource.
+ </p>
+ <p>
+ <b>mimeType</b> attribute defines the type of output content. It is used
to define
+ the corresponded type in the header of an HTTP response.
+ </p>
+ <p>
+ <b>cacheable</b> attribute is a flag that defines the caching strategy. If
'cacheable'
+ is set to false, the response will not be cached. If it is set to true, it will be
cached
+ and the serialized value of 'value' attribute plays the role of a cache key.
+ </p>
+
<p>Dynamically generated JPEG file:</p>
<a4j:mediaOutput element="img" cacheable="false"
session="true"
Deleted:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/mediaOutput.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/mediaOutput.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/mediaOutput.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -1,44 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:ui="http://java.sun.com/jsf/facelets">
-
-<ui:composition template="/templates/main.xhtml">
- <ui:define name="body">
- <p>a4j:mediaOutput allows to generate images, video, sounds and other binary
- resources defined by a user on-the-fly.
- </p>
- <p><b>createContent</b> attribute references to the method that will
be used
- for content creating. The method accepts two parameters. The first parameter
- has an OutputStream type. It is a reference to the steam that should be used for
output.
- The second parameter is a reference to a 'value' attribute of the component.
- </p>
- <p>
- <b>value</b> attribute references to data that can be used as input data
for a content
- creator method. The data should be serializable because it is encoded to the URL
- of the resource.
- </p>
- <p>
- <b>mimeType</b> attribute defines the type of output content. It is used
to define
- the corresponded type in the header of an HTTP response.
- </p>
- <p>
- <b>cacheable</b> attribute is a flag that defines the caching strategy. If
'cacheable'
- is set to false, the response will not be cached. If it is set to true, it will be
cached
- and the serialized value of 'value' attribute plays the role of a cache key.
- </p>
- <fieldset>
- <legend>Image output</legend>
- <ui:include src="/richfaces/mediaOutput/imgUsage.xhtml" />
- </fieldset>
- <ui:remove>
- <fieldset>
- <legend>Flash output</legend>
- <ui:include src="/richfaces/mediaOutput/flashUsage.xhtml" />
- </fieldset>
- </ui:remove>
- </ui:define>
-</ui:composition>
-
-</html>
\ No newline at end of file
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel/compositemessages.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -7,6 +7,11 @@
xmlns:rich="http://java.sun.com/jsf/composite/rich">
<ui:composition>
+ <p>
+ Next sample shows how you could simply create composite component from
+ standard h:messages and a4j:outputPanel in order to get them updated
+ for any ajax request without render definition.
+ </p>
<h:form>
<rich:panel id="psnel">
<f:facet name="header">
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel/simple.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel/simple.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel/simple.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -14,7 +14,22 @@
padding: 0px 30px 0px 0px;
vertical-align: top;
}
- </style>
+ </style>
+ <p>
+ <b>a4j:outputPanel</b> component designed to provide next features:
+ <ul>
+ <li><b>Automaticall updates</b> of the child content on Ajax
requests</li>
+ <li>Wrapper component for <b>conditional rendering of nested
elements</b> via Ajax</li>
+ <li><b>Configurable layouts</b>:
+ <ul>
+ <li>inline - rendered as span element</li>
+ <li>block - rendered as div element</li>
+ <li>none - special layout for nested components confitional rendering
cases</li>
+ </ul>
+ </li>
+ <li></li>
+ </ul>
+ </p>
<h:panelGrid columns="2" width="100%"
columnClasses="col">
<f:verbatim>
Deleted:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/outputPanel.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -1,40 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:ui="http://java.sun.com/jsf/facelets">
-
-<ui:composition template="/templates/main.xhtml">
- <ui:define name="body">
- <p>
- <b>a4j:outputPanel</b> component designed to provide next features:
- <ul>
- <li><b>Automaticall updates</b> of the child content on Ajax
requests</li>
- <li>Wrapper component for <b>conditional rendering of nested
elements</b> via Ajax</li>
- <li><b>Configurable layouts</b>:
- <ul>
- <li>inline - rendered as span element</li>
- <li>block - rendered as div element</li>
- <li>none - special layout for nested components confitional rendering
cases</li>
- </ul>
- </li>
- <li></li>
- </ul>
- </p>
- <fieldset>
- <legend>Sample</legend>
- <ui:include src="/richfaces/outputPanel/usage.xhtml" />
- </fieldset>
- <p>
- Next sample shows how you could simply create composite component from
- standard h:messages and a4j:outputPanel in order to get them updated
- for any ajax request without render definition.
- </p>
- <fieldset>
- <legend>Sample</legend>
- <ui:include src="/richfaces/outputPanel/compositemessages.xhtml" />
- </fieldset>
- </ui:define>
-</ui:composition>
-
-</html>
\ No newline at end of file
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/push/push.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/push/push.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/push/push.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -6,6 +6,16 @@
xmlns:a4j="http://richfaces.org/a4j">
<ui:composition>
+ <p>The <b><a4j:push></b> periodically perform AJAX
request to
+ server, to simulate 'push' data.</p>
+ <p><b><a4j:push></b> makes request to
+ minimal code only (not to JSF tree) in order to check the presence of
+ messages in the queue. If the message exists the complete request will
+ be performed. The component doesn't poll registered beans but
+ registers EventListener which receives messages about events.</p>
+ <p>Attribute '<b>interval</b>' is used as for poll component.
It
+ specifies the interval in ms. for call push request. Simple example of
+ usage:</p>
<h:form>
<h:dataTable value="#{choicesBean.choices}" var="choice"
id="choiceVotes">
<f:facet name="header">
Deleted: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/push.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/push.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/push.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -1,28 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:ui="http://java.sun.com/jsf/facelets">
-
- <ui:composition template="/templates/main.xhtml">
- <ui:define name="body">
- <p>The <b><a4j:push></b> periodically perform AJAX
request to
- server, to simulate 'push' data.</p>
- <p><b><a4j:push></b> makes request to
- minimal code only (not to JSF tree) in order to check the presence of
- messages in the queue. If the message exists the complete request will
- be performed. The component doesn't poll registered beans but
- registers EventListener which receives messages about events.</p>
- <p>Attribute '<b>interval</b>' is used as for poll component.
It
- specifies the interval in ms. for call push request. Simple example of
- usage:</p>
- <fieldset>
- <legend>
- Push Sample
- </legend>
- <ui:include src="/richfaces/push/usage.xhtml" />
- </fieldset>
- </ui:define>
- </ui:composition>
-
-</html>
\ No newline at end of file
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/status/referencedusage.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/status/referencedusage.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/status/referencedusage.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -6,6 +6,9 @@
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://java.sun.com/jsf/composite/rich">
<ui:composition>
+ <p>
+ Example of status which referenced from the components
+ </p>
<h:panelGrid columns="3" width="300px;">
<rich:panel>
<f:facet name="header">
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/status/simple.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/status/simple.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/status/simple.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -6,7 +6,10 @@
xmlns:rich="http://java.sun.com/jsf/composite/rich"
xmlns:a4j="http://richfaces.org/a4j">
- <ui:composition>
+ <ui:composition>
+ <p>
+ Example of form scoped status
+ </p>
<h:form>
<rich:panel id="psnel">
<f:facet name="header">
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/status/viewusage.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/status/viewusage.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/status/viewusage.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -6,7 +6,21 @@
xmlns:rich="http://java.sun.com/jsf/composite/rich"
xmlns:a4j="http://richfaces.org/a4j">
- <ui:composition>
+ <ui:composition>
+ <p>a4j:status is an indicator of an Ajax request. It has two states - start and
stop. The start
+ state indicates that an Ajax request is in progress. When Ajax Response comes back,
+ the component switches to the stop stage.
+ </p>
+ <p> Status could be defined:
+ <ul>
+ <li>Default for View</li>
+ <li>Default for form</li>
+ <li>Referenced explicity from the component which sends request</li>
+ </ul>
+ </p>
+ <p>
+ Example of View scoped status
+ </p>
<h:panelGrid columns="3">
<h:form>
<rich:panel id="psnel">
Deleted: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/status.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/status.xhtml 2010-05-20
02:20:02 UTC (rev 17152)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/status.xhtml 2010-05-20
09:13:40 UTC (rev 17153)
@@ -1,43 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:ui="http://java.sun.com/jsf/facelets">
-
- <ui:composition template="/templates/main.xhtml">
- <ui:define name="body">
- <p>a4j:status is an indicator of an Ajax request. It has two states - start and
stop. The start
- state indicates that an Ajax request is in progress. When Ajax Response comes back,
- the component switches to the stop stage.
- </p>
- <p> Status could be defined:
- <ul>
- <li>Default for View</li>
- <li>Default for form</li>
- <li>Referenced explicity from the component which sends request</li>
- </ul>
- </p>
- <p>
- Example of View scoped status
- </p>
- <fieldset>
- <legend>Default view status sample</legend>
- <ui:include src="/richfaces/status/viewusage.xhtml" />
- </fieldset>
- <p>
- Example of form scoped status
- </p>
- <fieldset>
- <legend>Default form status sample</legend>
- <ui:include src="/richfaces/status/usage.xhtml" />
- </fieldset>
- <p>
- Example of status which referenced from the components
- </p>
- <fieldset>
- <legend>Referenced status sample</legend>
- <ui:include src="/richfaces/status/referencedusage.xhtml" />
- </fieldset>
- </ui:define>
- </ui:composition>
-</html>
\ No newline at end of file