Author: amarkhel
Date: 2008-09-02 12:45:04 -0400 (Tue, 02 Sep 2008)
New Revision: 10279
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/ValidationBean.java
Log:
Fix bug RF-4251
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-02
16:44:46 UTC (rev 10278)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/ValidationBean.java 2008-09-02
16:45:04 UTC (rev 10279)
@@ -9,6 +9,7 @@
import org.hibernate.validator.Min;
import org.hibernate.validator.NotEmpty;
import org.hibernate.validator.NotNull;
+import org.hibernate.validator.Pattern;
/**
* @author Ilya Shaikovsky
@@ -19,6 +20,7 @@
private String progressString="Fill the form please";
@NotEmpty
+ @Pattern(regex="[^\\s]+", message="This string contain only
spaces")
@Length(min=3,max=12)
private String name;
@Email
Show replies by date