Update of 
/var/cvs/contributions/CMSContainer_Portlets/portlets-dynamicforms/src/java/com/finalist/portlets/responseform
In directory 
james.mmbase.org:/tmp/cvs-serv26532/portlets-dynamicforms/src/java/com/finalist/portlets/responseform

Modified Files:
      Tag: b1_4
        ResponseFormPortlet.java 
Log Message:
CMSC-1077 fixed, Field were always validated as email adres when having a 
regular expression.


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-dynamicforms/src/java/com/finalist/portlets/responseform
See also: http://www.mmbase.org/jira/browse/CMSC-1077


Index: ResponseFormPortlet.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-dynamicforms/src/java/com/finalist/portlets/responseform/ResponseFormPortlet.java,v
retrieving revision 1.8.2.7
retrieving revision 1.8.2.8
diff -u -b -r1.8.2.7 -r1.8.2.8
--- ResponseFormPortlet.java    6 Oct 2008 14:23:28 -0000       1.8.2.7
+++ ResponseFormPortlet.java    6 Oct 2008 15:00:06 -0000       1.8.2.8
@@ -107,7 +107,7 @@
                   errorMessages.put(fieldIdentifier, "view.formfield.empty");
                }
                if (!regex.equals("")
-                     && (((type == TYPE_TEXTBOX) || (type == TYPE_TEXTAREA)) 
&& !isEmailAddress(value.toString()))) {
+                     && (((type == TYPE_TEXTBOX) || (type == TYPE_TEXTAREA)) 
&& !value.toString().matches(regex))) {
                 errorMessages.put(fieldIdentifier, "view.formfield.invalid");
                }
                
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to