Author: jbalunas(a)redhat.com
Date: 2011-03-18 15:33:20 -0400 (Fri, 18 Mar 2011)
New Revision: 22265
Modified:
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/jsr303.xhtml
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/region/region.xhtml
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/region/samples/region-sample.xhtml
Log:
RF-10783 resolved minor text issues with showcase
Modified:
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/jsr303.xhtml
===================================================================
---
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/jsr303.xhtml 2011-03-18
15:18:37 UTC (rev 22264)
+++
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/jsr303.xhtml 2011-03-18
19:33:20 UTC (rev 22265)
@@ -18,7 +18,7 @@
send an Ajax request to get results from server side if needed.</p>
<p>In this example we are using Bean Validation constraints and checking
them at the client, so no requests are fired when typing values
- in the fields. Note that only checkbox activation causes Ajax fallback.</p>
+ in the fields. </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/region/region.xhtml
===================================================================
---
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/region/region.xhtml 2011-03-18
15:18:37 UTC (rev 22264)
+++
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/region/region.xhtml 2011-03-18
19:33:20 UTC (rev 22265)
@@ -11,16 +11,16 @@
processing definitions and component identifiers to be decoupled,
and declarative wrapping with the <b>a4j:region</b> tag is used
instead.</p>
<p>In <i>RichFaces 3.3</i>, the whole view was processed if no regions
were
- specified, as <b>ViewRoot</b> itself was the region by default. In
<i>RichFaces
- 4.x</i>, all the controls have <b>execute="@this"</b> by
default according
+ specified, as the <b>ViewRoot</b> itself was the region by default. In
<i>RichFaces
+ 4.x</i>, all the controls are set to <b>execute="@this"</b>
by default according
to JSF 2 specifications. However, if the controls wrapped with the
- <b>a4j:region</b> tag and have no execute definitions, they use <b>
- execute="@region"</b> instead.</p>
+ <b>a4j:region</b> tag and have no execute definitions, they use <i>
+ execute="@region"</i> instead.</p>
<p>The example below contains two similar user
info panels. The button inside the first panel will not work, as it does not use
execute
- declarations; by default it uses <b>execute="@this"</b>. A
separate definition is needed
- to make the button work properly. The second panel inputs
- are wrapped in a region with the <b>commandButton</b>, and input works
without any additional execute definitions.</p>
+ declarations; by default it uses <i>execute="@this"</i>. A
separate definition is needed
+ to make the button work properly. The second panel has its inputs and button
+ wrapped in an <b>a4j:region</b>. This means that the
<b>h:commandButton</b> works without any additional execute
definitions.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
<ui:include src="/templates/includes/source-view.xhtml">
<ui:param name="src" value="#{demoNavigator.sampleIncludeURI}"
/>
@@ -28,5 +28,8 @@
<ui:param name="openLabel" value="View Source" />
<ui:param name="hideLabel" value="Hide Source" />
</ui:include>
+ <p>Note: <b>a4j:commandButton/Link</b> use
<i>execute="@form""</i> as their
+ default and so would work as expected in both panels. They also integrate
+ in the core Ajax functionality, and do not require additional
<b>a4j:ajax</b> tags.</p>
</ui:composition>
</html>
Modified:
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/region/samples/region-sample.xhtml
===================================================================
---
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/region/samples/region-sample.xhtml 2011-03-18
15:18:37 UTC (rev 22264)
+++
branches/4.0.X/examples/richfaces-showcase/src/main/webapp/richfaces/region/samples/region-sample.xhtml 2011-03-18
19:33:20 UTC (rev 22265)
@@ -18,7 +18,9 @@
<h:outputText value="User email: " />
<h:inputText value="#{regionBean.user1.email}"/>
</h:panelGrid>
- <a4j:commandButton render="echopanel1" value="submit"/>
+ <h:commandButton value="broken submit">
+ <a4j:ajax render="echopanel1"/>
+ </h:commandButton>
</h:panelGrid>
<h:panelGrid columns="2" id="echopanel1">
<f:facet name="header">
@@ -44,7 +46,9 @@
<h:outputText value="User email: " />
<h:inputText value="#{regionBean.user2.email}"/>
</h:panelGrid>
- <a4j:commandButton render="echopanel2" value="submit"/>
+ <h:commandButton value="submit">
+ <a4j:ajax render="echopanel2"/>
+ </h:commandButton>
</a4j:region>
</h:panelGrid>
<h:panelGrid columns="2" id="echopanel2">
Show replies by date