Author: vmolotkov
Date: 2008-09-09 13:57:23 -0400 (Tue, 09 Sep 2008)
New Revision: 10384
Modified:
branches/3.2.x/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java
branches/3.2.x/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/ValidationBean.java
Log:
https://jira.jboss.org/jira/browse/RF-4434
Modified:
branches/3.2.x/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java
===================================================================
---
branches/3.2.x/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java 2008-09-09
17:36:36 UTC (rev 10383)
+++
branches/3.2.x/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java 2008-09-09
17:57:23 UTC (rev 10384)
@@ -10,7 +10,7 @@
private String address;
private String city;
private String zip;
- private int age;
+ private Integer age;
public UserBean() {
super();
}
@@ -80,11 +80,11 @@
this.zip = zip;
}
- public int getAge() {
+ public Integer getAge() {
return age;
}
- public void setAge(int age) {
+ public void setAge(Integer age) {
this.age = age;
}
Modified:
branches/3.2.x/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/ValidationBean.java
===================================================================
---
branches/3.2.x/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/ValidationBean.java 2008-09-09
17:36:36 UTC (rev 10383)
+++
branches/3.2.x/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/ValidationBean.java 2008-09-09
17:57:23 UTC (rev 10384)
@@ -26,10 +26,11 @@
@Email
@NotEmpty
private String email;
+
@NotNull
@Min(18)
@Max(100)
- private int age;
+ private Integer age;
public ValidationBean() {
}
@@ -50,11 +51,11 @@
this.email = email;
}
- public int getAge() {
+ public Integer getAge() {
return age;
}
- public void setAge(int age) {
+ public void setAge(Integer age) {
this.age = age;
}
public void success() {