diff --git a/core/src/main/resources/template/ajax/form.ftl b/core/src/main/resources/template/ajax/form.ftl index afd18e049..940ae68ae 100644 --- a/core/src/main/resources/template/ajax/form.ftl +++ b/core/src/main/resources/template/ajax/form.ftl @@ -1,9 +1,9 @@ <#if parameters.validate?exists> - - - - - + + + + + #if>
<#if parameters.namespace?exists> diff --git a/core/src/main/resources/template/css_xhtml/form-validate.ftl b/core/src/main/resources/template/css_xhtml/form-validate.ftl index 27e1e7db4..fdde25b25 100644 --- a/core/src/main/resources/template/css_xhtml/form-validate.ftl +++ b/core/src/main/resources/template/css_xhtml/form-validate.ftl @@ -1,5 +1,5 @@ <#if parameters.validate?default(false) == true> - + <#if parameters.onsubmit?exists> ${tag.addParameter('onsubmit', "${parameters.onsubmit}; return validateForm_${parameters.id}();")} <#else> diff --git a/core/src/main/resources/template/xhtml/form-validate.ftl b/core/src/main/resources/template/xhtml/form-validate.ftl index 3f506b0dd..ee0f4fd8b 100644 --- a/core/src/main/resources/template/xhtml/form-validate.ftl +++ b/core/src/main/resources/template/xhtml/form-validate.ftl @@ -1,5 +1,5 @@ <#if parameters.validate?default(false) == true> - + <#if parameters.onsubmit?exists> ${tag.addParameter('onsubmit', "${parameters.onsubmit}; return validateForm_${parameters.id}();")} <#else>