Author: mvitenkov
Date: 2008-08-08 09:08:30 -0400 (Fri, 08 Aug 2008)
New Revision: 9989
Modified:
trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java
Log:
Modified: trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java 2008-08-08
13:08:17 UTC (rev 9988)
+++ trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java 2008-08-08
13:08:30 UTC (rev 9989)
@@ -65,7 +65,17 @@
private String rangeValue;
@NotEmpty(message="rich:beanValidator work")
private String newValue;
+ @Pattern(regex="^1234*$") //Searh "1234" as a whole word
+ private String patternValue;
+ public String getPatternValue() {
+ return patternValue;
+ }
+
+ public void setPatternValue(String patternValue) {
+ this.patternValue = patternValue;
+ }
+
public String getRangeValue() {
return rangeValue;
}
@@ -244,8 +254,8 @@
public ValidatorBean(){
this.ajaxSingle = true;
- this.text = "mvitenkov(a)exadel.com";
- this.intValue = 1234;
+ this.text = "mvitenkov(a)exadel.com";
+ this.patternValue = "1234";
this.dateValue = Calendar.getInstance();
dateValue.set(Calendar.MONTH,8);
dateValue.set(Calendar.DATE,5);
Show replies by date