cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r328365 - /cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/formmodel/MultiValueField.java
Date Tue, 25 Oct 2005 13:57:34 GMT
Author: bruno
Date: Tue Oct 25 06:57:30 2005
New Revision: 328365

URL: http://svn.apache.org/viewcvs?rev=328365&view=rev
Log:
values can be == null if the field has never been assigned a value.

Modified:
    cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/formmodel/MultiValueField.java

Modified: cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/formmodel/MultiValueField.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/formmodel/MultiValueField.java?rev=328365&r1=328364&r2=328365&view=diff
==============================================================================
--- cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/formmodel/MultiValueField.java
(original)
+++ cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/formmodel/MultiValueField.java
Tue Oct 25 06:57:30 2005
@@ -121,7 +121,7 @@
 
         if (values != null) {
             validationError = definition.getDatatype().validate(values, new ExpressionContextImpl(this));
-        } else {
+        } else if (invalidEnteredValue != null) {
             validationError = new ValidationError(new I18nMessage("multivaluefield.conversionfailed",
new String[] {invalidEnteredValue}, FormsConstants.I18N_CATALOGUE));
         }
 



Mime
View raw message