Commits

Anonymous committed 07956e2

- fix a bug that throws ClassCastException in showcase field validators example
- FieldValidatorsExampleAction-conversion.properties should not have the entry
dateFieldValidator=java.util.Date
This will cause ClassCastException being logged due to WebWork expecting a Converter not a
java.util.Date
- Removed unused imports from FieldValidatorsExampleAction.java

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2948573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (2)

webapps/showcase/src/java/com/opensymphony/webwork/showcase/validation/FieldValidatorsExampleAction-conversion.properties

-dateValidatorField=java.util.Date
+#dateValidatorField=java.util.Date

webapps/showcase/src/java/com/opensymphony/webwork/showcase/validation/FieldValidatorsExampleAction.java

 package com.opensymphony.webwork.showcase.validation;
 
 import java.sql.Date;
-import java.util.Random;
 
 /**
  * @author tm_jee
 	private String fieldExpressionValidatorField = null;
 	
 	
-	private String randomNumber = null;
-	
-	
 	public Date getDateValidatorField() {
 		return dateValidatorField;
 	}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.