Author: alexsmirnov
Date: 2011-01-31 17:26:18 -0500 (Mon, 31 Jan 2011)
New Revision: 21343
Modified:
trunk/examples/validator-demo/src/main/webapp/examples/faces-validators.xhtml
Log:
RESOLVED - issue RF-10309: CSV: not working JSF validators.
https://issues.jboss.org/browse/RF-10309
Modified: trunk/examples/validator-demo/src/main/webapp/examples/faces-validators.xhtml
===================================================================
---
trunk/examples/validator-demo/src/main/webapp/examples/faces-validators.xhtml 2011-01-31
18:56:44 UTC (rev 21342)
+++
trunk/examples/validator-demo/src/main/webapp/examples/faces-validators.xhtml 2011-01-31
22:26:18 UTC (rev 21343)
@@ -14,13 +14,30 @@
<ui:define name="content">
<h:form id="form">
<h:panelGrid columns="4">
- <h:outputLabel for="text" value="Text length from 1 to
3:" />
- <h:inputText id="text" value="#{test.value}">
+ <h:outputLabel for="length" value="Text length from 1 to
3:" />
+ <h:inputText id="length" value="#{test.value}">
<f:validateLength minimum="1" maximum="3" />
<csv:validator event="blur" />
</h:inputText>
- <h:outputText id="out"
value="#{test.value}"></h:outputText>
- <csv:message id="uiMessage" for="text" />
+ <h:outputText id="lengthOut"
value="#{test.value}"></h:outputText>
+ <csv:message for="length" />
+
+ <h:outputLabel for="dblrange" value="Text dblrange from 1.0
to 3.0:" />
+ <h:inputText id="dblrange"
value="#{test.doubleValue}">
+ <f:validateDoubleRange minimum="1" maximum="3"
/>
+ <csv:validator event="blur" />
+ </h:inputText>
+ <h:outputText id="dblrangeOut"
value="#{test.doubleValue}"></h:outputText>
+ <csv:message for="dblrange" />
+
+ <h:outputLabel for="longrange" value="Text long range from
2 to 5:" />
+ <h:inputText id="longrange"
value="#{test.longValue}">
+ <f:validateLongRange minimum="2" maximum="5"
/>
+ <csv:validator event="blur" />
+ </h:inputText>
+ <h:outputText id="longrangeOut"
value="#{test.longValue}"></h:outputText>
+ <csv:message for="longrange" />
+
</h:panelGrid>
<h:commandButton value="Submit">
<csv:validator/>