[jboss-cvs] jboss-seam/src/ui/org/jboss/seam/ui ...
Gavin King
gavin.king at jboss.com
Mon Dec 18 10:38:50 EST 2006
User: gavin
Date: 06/12/18 10:38:50
Modified: src/ui/org/jboss/seam/ui ModelValidator.java
Log:
new validation component,
reworked navigation rules
Revision Changes Path
1.5 +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.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- ModelValidator.java 27 Oct 2006 13:20:01 -0000 1.4
+++ ModelValidator.java 18 Dec 2006 15:38:50 -0000 1.5
@@ -9,7 +9,7 @@
import org.hibernate.validator.InvalidValue;
import org.jboss.seam.core.FacesMessages;
-import org.jboss.seam.core.Validation;
+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 = Validation.instance().validate( context, valueBinding.getExpressionString(), value );
+ InvalidValue[] ivs = Validators.instance().validate( context, 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