[jboss-cvs] jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/preferences ...
Gavin King
gavin.king at jboss.com
Tue Jun 26 18:47:52 EDT 2007
User: gavin
Date: 07/06/26 18:47:52
Modified: examples/wiki/src/main/org/jboss/seam/wiki/preferences
PreferenceProperty.java
Log:
fix against current
Revision Changes Path
1.3 +2 -1 jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/preferences/PreferenceProperty.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PreferenceProperty.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/preferences/PreferenceProperty.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- PreferenceProperty.java 12 Jun 2007 12:30:05 -0000 1.2
+++ PreferenceProperty.java 26 Jun 2007 22:47:52 -0000 1.3
@@ -1,5 +1,6 @@
package org.jboss.seam.wiki.preferences;
+import org.jboss.seam.core.Validators;
import org.jboss.seam.util.Reflections;
import org.jboss.seam.Component;
import org.hibernate.validator.InvalidValue;
@@ -83,7 +84,7 @@
}
public InvalidValue[] validate(Component component, Object value) {
- ClassValidator validator = component.getValidator();
+ ClassValidator validator = Validators.instance().getValidator( component.getBeanClass() );
return validator.getPotentialInvalidValues( getName(), value );
}
More information about the jboss-cvs-commits
mailing list