Author: ilya_shaikovsky
Date: 2011-01-24 06:06:51 -0500 (Mon, 24 Jan 2011)
New Revision: 21168
Modified:
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/validation/ValidationBean.java
Log:
CSV sample
Modified:
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/validation/ValidationBean.java
===================================================================
---
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/validation/ValidationBean.java 2011-01-24
11:04:08 UTC (rev 21167)
+++
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/validation/ValidationBean.java 2011-01-24
11:06:51 UTC (rev 21168)
@@ -2,23 +2,13 @@
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
-import javax.validation.constraints.Min;
-import org.hibernate.validator.constraints.Email;
-import org.hibernate.validator.constraints.Length;
-import org.hibernate.validator.constraints.NotBlank;
-
@ManagedBean
@RequestScoped
public class ValidationBean {
- @NotBlank
- @Length(min = 3, max = 12)
- private String name;
- @Email
- @NotBlank
- private String email;
- @Min(value = 18)
+ private String name = null;
+ private String email = null;
private Integer age;
private String country;
private String jobTitle;