Author: jbalunas(a)redhat.com
Date: 2011-03-15 10:56:45 -0400 (Tue, 15 Mar 2011)
New Revision: 22225
Modified:
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/ajax.xhtml
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/selectsUpdates.xhtml
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/commandButton/commandButton.xhtml
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/commandLink/commandLink.xhtml
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/jsFunction/jsFunction.xhtml
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/param/clientParam.xhtml
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/param/param.xhtml
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/param/skinChange.xhtml
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/poll/poll.xhtml
Log:
RFPL-1211 updates to showcase text
Modified:
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/ajax.xhtml
===================================================================
---
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/ajax.xhtml 2011-03-15
12:15:43 UTC (rev 22224)
+++
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/ajax.xhtml 2011-03-15
14:56:45 UTC (rev 22225)
@@ -6,8 +6,9 @@
xmlns:a4j="http://richfaces.org/a4j">
<ui:composition>
- <p>The behavior that adds javascript call for sending Ajax request
- to specified event on parent component</p>
+ <p><b>a4j:ajax</b> is one of our core behaviors, extending the base
JSF 2.0
+ f:ajax tag. This tag triggers an Ajax request when the specified parent
+ event is triggered.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}"/>
<ui:include src="/templates/includes/source-view.xhtml">
<ui:param name="src"
value="#{demoNavigator.sampleIncludeURI}"/>
Modified:
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/selectsUpdates.xhtml
===================================================================
---
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/selectsUpdates.xhtml 2011-03-15
12:15:43 UTC (rev 22224)
+++
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/ajax/selectsUpdates.xhtml 2011-03-15
14:56:45 UTC (rev 22225)
@@ -6,9 +6,10 @@
xmlns:a4j="http://richfaces.org/a4j">
<ui:composition>
- <p>Typical use-case of dependent select components. When you
- choosing the type in the first select - corresponding items appears in
- second one.</p>
+ <p>This is a slightly more complex use-case for <b>arj:ajax</b>
involving
+ dependent select components. When you choose a value from the first select
+ component, the second select component is rendered with dynamic content
+ based on you first choice. </p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
<ui:include src="/templates/includes/source-view.xhtml">
<ui:param name="src" value="#{demoNavigator.sampleIncludeURI}"
/>
Modified:
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/commandButton/commandButton.xhtml
===================================================================
---
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/commandButton/commandButton.xhtml 2011-03-15
12:15:43 UTC (rev 22224)
+++
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/commandButton/commandButton.xhtml 2011-03-15
14:56:45 UTC (rev 22225)
@@ -5,8 +5,9 @@
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
- <p>The combination similar to h:commandButton with f:ajax. Inherits
- all a4j:ajax special options.</p>
+ <p>The <b>a4j:commandButton</b> combines the standard h:commandButton
with our own
+ a4j:ajax. This not only reduces typing, but also inherits all a4j:ajax
+ special options.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
<ui:include src="/templates/includes/source-view.xhtml">
<ui:param name="src" value="#{demoNavigator.sampleIncludeURI}"
/>
Modified:
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/commandLink/commandLink.xhtml
===================================================================
---
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/commandLink/commandLink.xhtml 2011-03-15
12:15:43 UTC (rev 22224)
+++
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/commandLink/commandLink.xhtml 2011-03-15
14:56:45 UTC (rev 22225)
@@ -6,8 +6,9 @@
<ui:composition>
- <p>The combination similar to h:commandLink with f:ajax. Inherits
- all a4j:ajax special options.</p>
+ <p>The <b>a4j:commandLink</b> combines the standard h:commandLink with
our own
+ a4j:ajax. This not only reduces typing, but also inherits all a4j:ajax
+ special options.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
<ui:include src="/templates/includes/source-view.xhtml">
<ui:param name="src" value="#{demoNavigator.sampleIncludeURI}"
/>
Modified:
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/jsFunction/jsFunction.xhtml
===================================================================
---
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/jsFunction/jsFunction.xhtml 2011-03-15
12:15:43 UTC (rev 22224)
+++
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/jsFunction/jsFunction.xhtml 2011-03-15
14:56:45 UTC (rev 22225)
@@ -6,11 +6,17 @@
<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>
+ <p>The <b>a4j:jsFunction</b> component creates a JavaScript function
that
+ allows you to send JSF Ajax requests from any JavaScript. You define the
+ Ajax and JSF properties just like a4j:ajax, or a4j:commandButton, and
+ <b>a4j:jsFunction</b> creates the JavaScript for you. The component sends a
+ request using the standard JSF mechanisms. Note that this means a JSF form
+ is required.</p>
+
+ <p> The following example shows how to use <b>a4j:jsFunction</b> to
create a
+ function named updateName. This is then called on mouseover of the
+ different names. This triggers the full round trip Ajax request and renders
+ the updated name.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
<ui:include src="/templates/includes/source-view.xhtml">
Modified:
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/param/clientParam.xhtml
===================================================================
---
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/param/clientParam.xhtml 2011-03-15
12:15:43 UTC (rev 22224)
+++
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/param/clientParam.xhtml 2011-03-15
14:56:45 UTC (rev 22225)
@@ -5,12 +5,14 @@
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
- <p>It is possible to use javascript variable of custom function for
- the 'value' attribute. In this case the 'noEscape' attribute should be
- set to true. When noEscape="true", the 'value' can contain any
- javascript expression or javascript function invocation and the result
- of them will be send to the server as a value of a4j:actionparam. The
- following example demonstrates how to assign the backing bean with
+ <p>Another great feature for the <b>a4j:param</b> component is the
+ ability to use JavaScript to assign the 'value' attribute. In this case the
+ 'noEscape' attribute should be set to true. When noEscape="true", the
'value'
+ can contain any JavaScript expression or JavaScript function. This will be
+ executed and the result will be sent to the server as the value of
+ a4j:param.</p>
+
+ <p>The following example demonstrates how to assign the backing bean with
browser screen size values.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
Modified:
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/param/param.xhtml
===================================================================
---
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/param/param.xhtml 2011-03-15
12:15:43 UTC (rev 22224)
+++
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/param/param.xhtml 2011-03-15
14:56:45 UTC (rev 22225)
@@ -5,11 +5,10 @@
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
- <p>a4j:actionparam is a component which extends regular f:param
- with the possibility to assign the value to the property of the manager
- bean directly using the assignTo attribute. Using this feature you can
- update model values without invoking even a single line of java code on
- the server side.</p>
+ <p>The <b>a4j:param</b> component extends the regular f:param
+ tag. The primary extension is the ability to assign a value to a property
+ on a managed bean directly using the assignTo attribute. Using this feature you can
+ update model values without invoking a single line code.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
<ui:include src="/templates/includes/source-view.xhtml">
<ui:param name="src" value="#{demoNavigator.sampleIncludeURI}"
/>
Modified:
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/param/skinChange.xhtml
===================================================================
---
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/param/skinChange.xhtml 2011-03-15
12:15:43 UTC (rev 22224)
+++
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/param/skinChange.xhtml 2011-03-15
14:56:45 UTC (rev 22225)
@@ -5,10 +5,9 @@
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition>
- <p>You can use a4j:param not only with ajax components, but with
- non-ajax command components and for GET navigation components also. In
- the following example, the used skin of the demo is changed when the
- whole page is refreshed with the regular h:link.</p>
+ <p>You can also use <b>a4j:param</b> with non-ajax command components
+ including GET navigation components. In this example, the skin of the demo
+ is changed when using a standard h:link tag.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
<ui:include src="/templates/includes/source-view.xhtml">
Modified:
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/poll/poll.xhtml
===================================================================
---
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/poll/poll.xhtml 2011-03-15
12:15:43 UTC (rev 22224)
+++
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/poll/poll.xhtml 2011-03-15
14:56:45 UTC (rev 22225)
@@ -6,17 +6,14 @@
xmlns:rich="http://richfaces.org/rich">
<ui:composition>
- <p>a4j:poll is one of the way how you can organize the periodical
- polling of server data and updating the page. a4j:poll is a standard
- RichFaces Ajax component. Thus, you can use the same approach as for
- a4j:commandButton for example. I.e. you can use action attribute to
- invoke the action method and reRender attribute to update area(s) on
- the client when Ajax Response returns back. RichFaces uses the standard
- form based request, so the form around the a4j:poll component is
- required.</p>
- <p>The following example shows how the date and time is updated on
- the page based on the data taken from the server. To turn off polling,
- press "Stop Polling" button.</p>
+ <p>The <b>a4j:poll</b> component defines a way to periodically poll a
server
+ in order to trigger state changes, or update parts of your page. You can
+ use the same options, and settings as the a4j:ajax or a4j:commandButton. So you
+ can set execute, and render attributes, as well as any normal JSF action
+ attributes. RichFaces uses a standard form based request, so the form around the
+ a4j:poll component is required.</p>
+ <p>The example below updates the date and time on the page based on the data on
+ the server. To turn off polling, press "Stop Polling" button.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
<ui:include src="/templates/includes/source-view.xhtml">
@@ -32,7 +29,7 @@
<ui:param name="hideLabel" value="Hide Bean Source" />
</ui:include>
<rich:panel>
- <b>NOTE:</b>polling is automatically disabled in this demo after one minute
of working.
+ <b>NOTE:</b> polling is automatically disabled in this demo after one
minute.
</rich:panel>
</ui:composition>
</html>
\ No newline at end of file