Author: mvitenkov
Date: 2008-08-06 03:33:38 -0400 (Wed, 06 Aug 2008)
New Revision: 9930
Modified:
trunk/test-applications/jsp/src/main/java/validator/DataBean.java
trunk/test-applications/jsp/src/main/java/validator/LengthBean.java
trunk/test-applications/jsp/src/main/java/validator/MaxBean.java
trunk/test-applications/jsp/src/main/java/validator/MinBean.java
trunk/test-applications/jsp/src/main/java/validator/MinMaxBean.java
trunk/test-applications/jsp/src/main/java/validator/NotEmptyBean.java
trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java
Log:
Modified: trunk/test-applications/jsp/src/main/java/validator/DataBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/validator/DataBean.java 2008-08-06 00:16:23
UTC (rev 9929)
+++ trunk/test-applications/jsp/src/main/java/validator/DataBean.java 2008-08-06 07:33:38
UTC (rev 9930)
@@ -24,7 +24,7 @@
private UIGraphValidator graphValidatorComponent = null;
private String bindLabel;
private boolean rendered;
- @Size(min=2,max=5,message="Size validation failed!!!!")
+ @Size(min=2,max=8,message="Size validation failed!!!!")
private ArrayList<Data> data;
private int length;
@@ -112,7 +112,7 @@
this.rendered = true;
this.data = new ArrayList<Data>();
Random r = new Random();
- for(int i = 0; i < 10; i++)
+ for(int i = 0; i < 7; i++)
data.add(new Data(i, r.nextInt(1000), Data.Random(6), r.nextInt(10000) + 98389,
Data.Random(r.nextInt(10) + 1), r.nextInt(500000), Data.statusIcon[i % 5], Data.Random(3),
false)); //new Data(i, Data.Random(5), Data.statusIcon[i % 5], Data.Random(6), false));
}
Modified: trunk/test-applications/jsp/src/main/java/validator/LengthBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/validator/LengthBean.java 2008-08-06
00:16:23 UTC (rev 9929)
+++ trunk/test-applications/jsp/src/main/java/validator/LengthBean.java 2008-08-06
07:33:38 UTC (rev 9930)
@@ -21,6 +21,10 @@
/**
* @return the text
*/
+ public LengthBean(){
+ this.text = "12345";
+ }
+
public String getText() {
return text;
}
Modified: trunk/test-applications/jsp/src/main/java/validator/MaxBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/validator/MaxBean.java 2008-08-06 00:16:23
UTC (rev 9929)
+++ trunk/test-applications/jsp/src/main/java/validator/MaxBean.java 2008-08-06 07:33:38
UTC (rev 9930)
@@ -20,9 +20,13 @@
@Max(10)
private int intValue;
+ public MaxBean(){
+ this.intValue = 5;
+ }
+
/**
* @return the text
- */
+ */
public String getText() {
return text;
}
Modified: trunk/test-applications/jsp/src/main/java/validator/MinBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/validator/MinBean.java 2008-08-06 00:16:23
UTC (rev 9929)
+++ trunk/test-applications/jsp/src/main/java/validator/MinBean.java 2008-08-06 07:33:38
UTC (rev 9930)
@@ -19,6 +19,10 @@
@Min(2)
private int intValue;
+ public MinBean(){
+ this.intValue = 4;
+ }
+
/**
* @return the text
*/
Modified: trunk/test-applications/jsp/src/main/java/validator/MinMaxBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/validator/MinMaxBean.java 2008-08-06
00:16:23 UTC (rev 9929)
+++ trunk/test-applications/jsp/src/main/java/validator/MinMaxBean.java 2008-08-06
07:33:38 UTC (rev 9930)
@@ -21,6 +21,10 @@
@Max(10)
private int intValue;
+ public MinMaxBean(){
+ this.intValue = 4;
+ }
+
/**
* @return the text
*/
Modified: trunk/test-applications/jsp/src/main/java/validator/NotEmptyBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/validator/NotEmptyBean.java 2008-08-06
00:16:23 UTC (rev 9929)
+++ trunk/test-applications/jsp/src/main/java/validator/NotEmptyBean.java 2008-08-06
07:33:38 UTC (rev 9930)
@@ -17,6 +17,10 @@
private int intValue;
+ public NotEmptyBean(){
+ text = "not empty";
+ }
+
/**
* @return the text
*/
Modified: trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java 2008-08-06
00:16:23 UTC (rev 9929)
+++ trunk/test-applications/jsp/src/main/java/validator/ValidatorBean.java 2008-08-06
07:33:38 UTC (rev 9930)
@@ -254,6 +254,7 @@
this.ean = "97 81550 41198 0";
this.creditValue = "visa maestro";
this.assertTrue = true;
+ this.rangeValue = "3.14159265";
this.sizeValues = new ArrayList<SelectItem>();
for(int i=0;i<6;i++){
sizeValues.add(new SelectItem("value_"+i,"label_"+i));
Show replies by date