From 08e666d5941b843923ea4e7e213b9a6955ca8ba3 Mon Sep 17 00:00:00 2001 From: Toby Jee Date: Sun, 23 Apr 2006 14:06:16 +0000 Subject: [PATCH] ww-1184 git-svn-id: https://svn.apache.org/repos/asf/incubator/webwork2@396273 13f79535-47bb-0310-9956-ffa450edef68 --- .../resources/template/ajax/form-close.ftl | 11 +- .../resources/template/simple/form-close.ftl | 111 ++++++++++-------- .../main/resources/template/simple/form.ftl | 4 +- .../template/xhtml/form-validate.ftl | 4 +- .../struts/action2/views/jsp/ui/Formtag-1.txt | 6 +- .../struts/action2/views/jsp/ui/Formtag-2.txt | 17 +-- .../struts/action2/views/jsp/ui/Formtag-3.txt | 6 +- .../struts/action2/views/jsp/ui/Formtag-4.txt | 6 +- .../struts/action2/views/jsp/ui/Formtag-5.txt | 6 +- .../struts/action2/views/jsp/ui/Formtag-6.txt | 17 +-- .../struts/action2/views/jsp/ui/Formtag-7.txt | 6 +- .../struts/action2/views/jsp/ui/Formtag-8.txt | 6 +- .../struts/action2/views/jsp/ui/tooltip-1.txt | 6 +- .../struts/action2/views/jsp/ui/tooltip-2.txt | 6 +- .../struts/action2/views/jsp/ui/tooltip-3.txt | 6 +- 15 files changed, 100 insertions(+), 118 deletions(-) diff --git a/action/src/main/resources/template/ajax/form-close.ftl b/action/src/main/resources/template/ajax/form-close.ftl index 71d6f2b67..ec1b4f8e5 100644 --- a/action/src/main/resources/template/ajax/form-close.ftl +++ b/action/src/main/resources/template/ajax/form-close.ftl @@ -1,11 +1,13 @@ - + + diff --git a/action/src/main/resources/template/simple/form-close.ftl b/action/src/main/resources/template/simple/form-close.ftl index b6701ba13..57a639879 100644 --- a/action/src/main/resources/template/simple/form-close.ftl +++ b/action/src/main/resources/template/simple/form-close.ftl @@ -1,57 +1,68 @@ - +<#if (parameters.customOnsubmitEnabled?if_exists)> + <#-- diff --git a/action/src/main/resources/template/simple/form.ftl b/action/src/main/resources/template/simple/form.ftl index eb5a350b5..5ff68f2cf 100644 --- a/action/src/main/resources/template/simple/form.ftl +++ b/action/src/main/resources/template/simple/form.ftl @@ -1,8 +1,8 @@ <#if (parameters.validate?default(false) == false)><#rt/> <#if parameters.onsubmit?exists><#rt/> - ${tag.addParameter('onsubmit', "${parameters.onsubmit}; customOnsubmit(); return true;") } + ${tag.addParameter('onsubmit', "${parameters.onsubmit}; return true;") } <#else> - ${tag.addParameter('onsubmit', "customOnsubmit(); return true;") } + ${tag.addParameter('onsubmit', "return true;") } diff --git a/action/src/main/resources/template/xhtml/form-validate.ftl b/action/src/main/resources/template/xhtml/form-validate.ftl index b30bad8aa..3f506b0dd 100644 --- a/action/src/main/resources/template/xhtml/form-validate.ftl +++ b/action/src/main/resources/template/xhtml/form-validate.ftl @@ -1,8 +1,8 @@ <#if parameters.validate?default(false) == true> <#if parameters.onsubmit?exists> - ${tag.addParameter('onsubmit', "${parameters.onsubmit}; customOnsubmit(); return validateForm_${parameters.id}();")} + ${tag.addParameter('onsubmit', "${parameters.onsubmit}; return validateForm_${parameters.id}();")} <#else> - ${tag.addParameter('onsubmit', "customOnsubmit(); return validateForm_${parameters.id}();")} + ${tag.addParameter('onsubmit', "return validateForm_${parameters.id}();")} diff --git a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-1.txt b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-1.txt index 4249f681a..bc4175617 100644 --- a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-1.txt +++ b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-1.txt @@ -1,11 +1,7 @@ -
+
- - diff --git a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-2.txt b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-2.txt index c962eb835..cda3d763a 100644 --- a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-2.txt +++ b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-2.txt @@ -1,5 +1,5 @@ -
+
@@ -20,13 +20,14 @@ diff --git a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-3.txt b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-3.txt index 4983cc87a..3c5cbc109 100644 --- a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-3.txt +++ b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-3.txt @@ -1,12 +1,8 @@ - +
- - diff --git a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-4.txt b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-4.txt index 44cac18d1..62448ed6f 100644 --- a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-4.txt +++ b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-4.txt @@ -1,12 +1,8 @@ -
+
- - diff --git a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-5.txt b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-5.txt index 55b311241..c2dee453f 100644 --- a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-5.txt +++ b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-5.txt @@ -1,12 +1,8 @@ -
+
- - diff --git a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-6.txt b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-6.txt index 340a394c9..0cb3702d0 100644 --- a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-6.txt +++ b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-6.txt @@ -1,4 +1,4 @@ -
+
@@ -19,13 +19,14 @@ diff --git a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-7.txt b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-7.txt index df845ade7..fac15c6a8 100644 --- a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-7.txt +++ b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-7.txt @@ -1,12 +1,8 @@ - +
- - diff --git a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-8.txt b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-8.txt index 2324ffd6f..c2dee453f 100644 --- a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-8.txt +++ b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/Formtag-8.txt @@ -1,12 +1,8 @@ -
+
- - diff --git a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/tooltip-1.txt b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/tooltip-1.txt index eb6ae3a3d..786cec003 100644 --- a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/tooltip-1.txt +++ b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/tooltip-1.txt @@ -1,4 +1,4 @@ -
+
- - diff --git a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/tooltip-2.txt b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/tooltip-2.txt index 1dd1611f1..fbc7df951 100644 --- a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/tooltip-2.txt +++ b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/tooltip-2.txt @@ -1,4 +1,4 @@ -
+
- - diff --git a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/tooltip-3.txt b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/tooltip-3.txt index 0ce4a9720..cfd35699b 100644 --- a/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/tooltip-3.txt +++ b/action/src/test/resources/org/apache/struts/action2/views/jsp/ui/tooltip-3.txt @@ -1,4 +1,4 @@ -
+
- -