[richfaces-svn-commits] JBoss Rich Faces SVN: r18720 - modules/tests/metamer/trunk/application/src/main/webapp/components/a4jStatus.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Tue Aug 17 11:58:23 EDT 2010
Author: lfryc at redhat.com
Date: 2010-08-17 11:58:23 -0400 (Tue, 17 Aug 2010)
New Revision: 18720
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jStatus/referencedUsage.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jStatus/simple.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jStatus/viewUsage.xhtml
Log:
a4j:status - updated all samples to display the state of request using facets + added instant change of facets using ajax request for simple.xhtml (RFPL-735)
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/a4jStatus/referencedUsage.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/a4jStatus/referencedUsage.xhtml 2010-08-17 15:57:42 UTC (rev 18719)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/a4jStatus/referencedUsage.xhtml 2010-08-17 15:58:23 UTC (rev 18720)
@@ -47,16 +47,32 @@
<h:commandButton id="button1" value="Named status 1" onclick="statusFunction1(); return false;" />
<a4j:status name="status1">
- <f:facet name="start">
- <h:outputText id="statusText1" style="color: red;" value="WORKING"/>
- </f:facet>
- </a4j:status>
+ <f:facet name="start">
+ <h:outputText id="status1TextStart" style="font-size: large; color: red;" value="START" />
+ </f:facet>
+ <f:facet name="stop">
+ <h:outputText id="status1TextStop" style="font-size: large; color: red;" value="STOP" />
+ </f:facet>
+
+ <f:facet name="error">
+ <h:outputText id="status1TextError" style="font-size: large; color: red;" value="ERROR" />
+ </f:facet>
+ </a4j:status>
+
<h:commandButton id="button2" value="Named status 2" onclick="statusFunction2(); return false;" />
<a4j:status name="status2">
<f:facet name="start">
- <h:outputText id="statusText2" style="color: red;" value="WORKING"/>
+ <h:outputText id="status2TextStart" style="font-size: large; color: red;" value="START" />
</f:facet>
+
+ <f:facet name="stop">
+ <h:outputText id="status2TextStop" style="font-size: large; color: red;" value="STOP" />
+ </f:facet>
+
+ <f:facet name="error">
+ <h:outputText id="status2TextError" style="font-size: large; color: red;" value="ERROR" />
+ </f:facet>
</a4j:status>
</h:panelGrid>
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/a4jStatus/simple.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/a4jStatus/simple.xhtml 2010-08-17 15:57:42 UTC (rev 18719)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/a4jStatus/simple.xhtml 2010-08-17 15:58:23 UTC (rev 18720)
@@ -38,8 +38,8 @@
<ui:define name="outOfTemplateBefore">
<fieldset>
- <legend>facets settings</legend>
- <h:panelGrid id="facetGrid" columns="2">
+ <legend>Facets Settings</legend>
+ <h:panelGrid id="facetsSettings" columns="2">
<h:outputText value="Facet Start: " />
<h:inputText value="#{a4jStatusBean.facetStartValue}" />
@@ -48,9 +48,9 @@
<h:outputText value="Facet Error: " />
<h:inputText value="#{a4jStatusBean.facetErrorValue}" />
+
+ <a4j:commandButton id="apply" value="Apply instantly" render="status,facetGrid" execute="facetGrid" />
</h:panelGrid>
-
- <a4j:commandButton render="status,facetGrid" execute="facetGrid" />
</fieldset>
</ui:define>
@@ -66,17 +66,20 @@
onsuccess="#{a4jStatusBean.attributes['onsuccess'].value}"
rendered="#{a4jStatusBean.attributes['rendered'].value}"
value="#{a4jStatusBean.attributes['value'].value}">
-
+
<f:facet name="start">
- <h:outputText id="statusTextStart" style="font-size: large; color: red;" value="#{a4jStatusBean.facetStartValue}" rendered="#{not empty a4jStatusBean.facetStartValue}"/>
+ <h:outputText id="statusTextStart" style="font-size: large; color: red;"
+ value="#{a4jStatusBean.facetStartValue}" rendered="#{not empty a4jStatusBean.facetStartValue}" />
</f:facet>
-
+
<f:facet name="stop">
- <h:outputText id="statusTextStop" style="font-size: large; color: red;" value="#{a4jStatusBean.facetStopValue}" rendered="#{not empty a4jStatusBean.facetStopValue}"/>
+ <h:outputText id="statusTextStop" style="font-size: large; color: red;"
+ value="#{a4jStatusBean.facetStopValue}" rendered="#{not empty a4jStatusBean.facetStopValue}" />
</f:facet>
-
+
<f:facet name="error">
- <h:outputText id="statusTextError" style="font-size: large; color: red;" value="#{a4jStatusBean.facetErrorValue}" rendered="#{not empty a4jStatusBean.facetErrorValue}"/>
+ <h:outputText id="statusTextError" style="font-size: large; color: red;"
+ value="#{a4jStatusBean.facetErrorValue}" rendered="#{not empty a4jStatusBean.facetErrorValue}" />
</f:facet>
</a4j:status>
</fieldset>
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/a4jStatus/viewUsage.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/a4jStatus/viewUsage.xhtml 2010-08-17 15:57:42 UTC (rev 18719)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/a4jStatus/viewUsage.xhtml 2010-08-17 15:58:23 UTC (rev 18720)
@@ -53,8 +53,16 @@
rendered="#{a4jStatusBean.attributes['rendered'].value}"
value="#{a4jStatusBean.attributes['value'].value}">
<f:facet name="start">
- <h:outputText id="statusText" style="font-size: large; color: red;" value="WORKING"/>
+ <h:outputText id="statusTextStart" style="font-size: large; color: red;" value="START" />
</f:facet>
+
+ <f:facet name="stop">
+ <h:outputText id="statusTextStop" style="font-size: large; color: red;" value="STOP" />
+ </f:facet>
+
+ <f:facet name="error">
+ <h:outputText id="statusTextError" style="font-size: large; color: red;" value="ERROR" />
+ </f:facet>
</a4j:status>
</fieldset>
More information about the richfaces-svn-commits
mailing list