From dcad8fbd007c2df90fc713bbb4528b5be8b56cd2 Mon Sep 17 00:00:00 2001 From: Musachy Barroso Date: Sat, 24 Feb 2007 16:50:09 +0000 Subject: [PATCH] WW-1671 templates don't specify type="text/javascript"; break W3C validation git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@511303 13f79535-47bb-0310-9956-ffa450edef68 --- core/src/main/resources/template/ajax/form.ftl | 10 +++++----- .../resources/template/css_xhtml/form-validate.ftl | 2 +- .../main/resources/template/xhtml/form-validate.ftl | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) 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 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>