Author: alexsmirnov
Date: 2011-02-07 19:30:49 -0500 (Mon, 07 Feb 2011)
New Revision: 21524
Modified:
trunk/examples/validator-demo/src/main/webapp/examples/ajax-validator.xhtml
trunk/examples/validator-demo/src/main/webapp/examples/faces-validators.xhtml
Log:
RESOLVED - issue RF-10293: richfaces-showcase: message: not updated via ajax but h:message
+ outputPanel does.
https://issues.jboss.org/browse/RF-10293
Modified: trunk/examples/validator-demo/src/main/webapp/examples/ajax-validator.xhtml
===================================================================
--- trunk/examples/validator-demo/src/main/webapp/examples/ajax-validator.xhtml 2011-02-07
20:17:53 UTC (rev 21523)
+++ trunk/examples/validator-demo/src/main/webapp/examples/ajax-validator.xhtml 2011-02-08
00:30:49 UTC (rev 21524)
@@ -3,6 +3,7 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:csv="http://richfaces.org/csv"
+
xmlns:a4j="http://richfaces.org/a4j"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<ui:composition template="/layout/template.xhtml">
<ui:param name="title" value="JSF validator by AJAX" />
@@ -19,6 +20,8 @@
</h:inputText>
<h:outputText id="out"
value="#{test.value}"></h:outputText>
<csv:message id="uiMessage" for="text" />
+ <h:commandButton value="Submit form"/>
+ <a4j:commandButton value="AJAX Submit"
render="out"/>
</h:form>
<csv:messages />
</ui:define>
Modified: trunk/examples/validator-demo/src/main/webapp/examples/faces-validators.xhtml
===================================================================
---
trunk/examples/validator-demo/src/main/webapp/examples/faces-validators.xhtml 2011-02-07
20:17:53 UTC (rev 21523)
+++
trunk/examples/validator-demo/src/main/webapp/examples/faces-validators.xhtml 2011-02-08
00:30:49 UTC (rev 21524)
@@ -39,9 +39,12 @@
<csv:message for="longrange" />
</h:panelGrid>
- <h:commandButton value="Submit">
+ <h:commandButton value="Submit form with client-side validation">
<csv:validator/>
</h:commandButton>
+ <a4j:commandButton value="AJAX Submit with client-side
validation" render="lengthOut,dblrangeOut,longrangeOut">
+ <csv:validator/>
+ </a4j:commandButton>
</h:form>
<csv:messages />
</ui:define>