Author: wesw Date: Thu Feb 14 16:41:16 2008 New Revision: 627922 URL: http://svn.apache.org/viewvc?rev=627922&view=rev Log: Using the 'c' builtin in freemarker so that numbers are output in a fashion usable in JavaScript, address WW-2254
Modified: struts/struts2/trunk/core/src/main/resources/template/xhtml/form-close-validate.ftl Modified: struts/struts2/trunk/core/src/main/resources/template/xhtml/form-close-validate.ftl URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/template/xhtml/form-close-validate.ftl?rev=627922&r1=627921&r2=627922&view=diff ============================================================================== --- struts/struts2/trunk/core/src/main/resources/template/xhtml/form-close-validate.ftl (original) +++ struts/struts2/trunk/core/src/main/resources/template/xhtml/form-close-validate.ftl Thu Feb 14 16:41:16 2008 @@ -68,8 +68,8 @@ while (value.substring(value.length-1, value.length) == ' ') value = value.substring(0, value.length-1); </#if> - if ((${validator.minLength?string} > -1 && value.length < ${validator.minLength?string}) || - (${validator.maxLength?string} > -1 && value.length > ${validator.maxLength?string})) { + if ((${validator.minLength?c} > -1 && value.length < ${validator.minLength?c}) || + (${validator.maxLength?c} > -1 && value.length > ${validator.maxLength?c})) { addError(field, error); errors = true; }