Author: amarkhel
Date: 2008-09-05 11:56:10 -0400 (Fri, 05 Sep 2008)
New Revision: 10327
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/ValidationBean.java
Log:
Fix 4251 bug
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/ValidationBean.java
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/ValidationBean.java 2008-09-05
15:24:50 UTC (rev 10326)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/ValidationBean.java 2008-09-05
15:56:10 UTC (rev 10327)
@@ -20,7 +20,7 @@
private String progressString="Fill the form please";
@NotEmpty
- @Pattern(regex="[^\\s]+", message="This string contain only
spaces")
+ @Pattern(regex=".*[^\\s].*", message="This string contain only
spaces")
@Length(min=3,max=12)
private String name;
@Email
Show replies by date