[jboss-cvs] jboss-seam/src/ui/org/jboss/seam/ui ...
Gavin King
gavin.king at jboss.com
Wed Feb 14 00:46:30 EST 2007
User: gavin
Date: 07/02/14 00:46:30
Modified: src/ui/org/jboss/seam/ui ModelValidator.java
Log:
introduced meta-model for non-component objects
Revision Changes Path
1.6 +2 -2 jboss-seam/src/ui/org/jboss/seam/ui/ModelValidator.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ModelValidator.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/ui/org/jboss/seam/ui/ModelValidator.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- ModelValidator.java 18 Dec 2006 15:38:50 -0000 1.5
+++ ModelValidator.java 14 Feb 2007 05:46:30 -0000 1.6
@@ -8,8 +8,8 @@
import javax.faces.validator.ValidatorException;
import org.hibernate.validator.InvalidValue;
+import org.jboss.seam.core.Expressions;
import org.jboss.seam.core.FacesMessages;
-import org.jboss.seam.core.Validators;
public class ModelValidator implements Validator
{
@@ -22,7 +22,7 @@
{
throw new RuntimeException("component has no value attribute: " + component.getId());
}
- InvalidValue[] ivs = Validators.instance().validate( context, valueBinding.getExpressionString(), value );
+ InvalidValue[] ivs = Expressions.instance().validate( valueBinding.getExpressionString(), value );
if ( ivs.length>0 )
{
throw new ValidatorException( FacesMessages.createFacesMessage( FacesMessage.SEVERITY_WARN, ivs[0].getMessage() ) );
More information about the jboss-cvs-commits
mailing list