[jboss-cvs] jboss-seam/src/ui/org/jboss/seam/ui ...
Gavin King
gavin.king at jboss.com
Wed Mar 7 18:53:58 EST 2007
User: gavin
Date: 07/03/07 18:53:58
Modified: src/ui/org/jboss/seam/ui ModelValidator.java
Log:
JBSEAM-913
Revision Changes Path
1.7 +9 -1 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.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- ModelValidator.java 14 Feb 2007 05:46:30 -0000 1.6
+++ ModelValidator.java 7 Mar 2007 23:53:58 -0000 1.7
@@ -22,7 +22,15 @@
{
throw new RuntimeException("component has no value attribute: " + component.getId());
}
- InvalidValue[] ivs = Expressions.instance().validate( valueBinding.getExpressionString(), value );
+ InvalidValue[] ivs;
+ try
+ {
+ ivs = Expressions.instance().validate( valueBinding.getExpressionString(), value );
+ }
+ catch (Exception e)
+ {
+ throw new ValidatorException( new FacesMessage(FacesMessage.SEVERITY_ERROR, "model validation failed", null) );
+ }
if ( ivs.length>0 )
{
throw new ValidatorException( FacesMessages.createFacesMessage( FacesMessage.SEVERITY_WARN, ivs[0].getMessage() ) );
More information about the jboss-cvs-commits
mailing list