From 1de0e779f2be090e75f613ad9c87228ac92183ab Mon Sep 17 00:00:00 2001 From: Aleksandr Mashchenko Date: Fri, 30 May 2014 09:27:43 +0300 Subject: [PATCH 1/7] converted align and valign to css text-align and vertical-align --- core/src/main/resources/template/css_xhtml/reset.ftl | 2 +- core/src/main/resources/template/css_xhtml/submit.ftl | 2 +- .../resources/template/simple/inputtransferselect.ftl | 2 +- .../resources/template/simple/optiontransferselect.ftl | 2 +- core/src/main/resources/template/simple/table.ftl | 10 +++++----- core/src/main/resources/template/xhtml/checkbox.ftl | 6 +++--- .../main/resources/template/xhtml/controlfooter.ftl | 2 +- .../resources/template/xhtml/controlheader-core.ftl | 4 ++-- .../main/resources/template/xhtml/controlheader.ftl | 2 +- core/src/main/resources/template/xhtml/reset.ftl | 2 +- core/src/main/resources/template/xhtml/submit.ftl | 2 +- .../org/apache/struts2/views/jsp/ui/Checkbox-1.txt | 4 ++-- .../org/apache/struts2/views/jsp/ui/Checkbox-2.txt | 4 ++-- .../org/apache/struts2/views/jsp/ui/Checkbox-3.txt | 8 ++++---- .../org/apache/struts2/views/jsp/ui/Checkbox-33.txt | 8 ++++---- .../org/apache/struts2/views/jsp/ui/Checkbox-5.txt | 4 ++-- .../org/apache/struts2/views/jsp/ui/Checkbox-6.txt | 4 ++-- .../org/apache/struts2/views/jsp/ui/Formtag-27.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Label-3.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Reset-1.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Reset-2.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Reset-3.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Reset-4.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Reset-5.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Reset-6.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Submit-1.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Submit-2.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Submit-3.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Submit-4.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Submit-5.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Submit-6.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Textfield-2.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Textfield-8.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Textfield-9.txt | 2 +- .../struts2/views/jsp/ui/inputtransferselect-1.txt | 2 +- .../struts2/views/jsp/ui/optiontransferselect-1.txt | 2 +- .../struts2/views/jsp/ui/optiontransferselect-2.txt | 2 +- .../struts2/views/jsp/ui/optiontransferselect-3.txt | 2 +- .../struts2/views/jsp/ui/optiontransferselect-4.txt | 2 +- .../struts2/views/jsp/ui/optiontransferselect-5.txt | 2 +- .../struts2/views/jsp/ui/optiontransferselect-6.txt | 2 +- .../struts2/views/jsp/ui/optiontransferselect-7.txt | 2 +- .../apache/struts2/views/jsp/ui/validationstyles-1.txt | 2 +- .../apache/struts2/views/jsp/ui/validationstyles-2.txt | 2 +- .../apache/struts2/views/jsp/ui/validationstyles-3.txt | 2 +- 45 files changed, 62 insertions(+), 62 deletions(-) diff --git a/core/src/main/resources/template/css_xhtml/reset.ftl b/core/src/main/resources/template/css_xhtml/reset.ftl index 6d7734f999..ab6f6efaba 100644 --- a/core/src/main/resources/template/css_xhtml/reset.ftl +++ b/core/src/main/resources/template/css_xhtml/reset.ftl @@ -31,7 +31,7 @@ <#if parameters.align??> - align="${parameters.align?html}"<#t/> + style="text-align: ${parameters.align?html};"<#t/> <#if parameters.id??> id="wwctrl_${parameters.id}"<#rt/> diff --git a/core/src/main/resources/template/css_xhtml/submit.ftl b/core/src/main/resources/template/css_xhtml/submit.ftl index ffb4df99a3..b981d669a7 100644 --- a/core/src/main/resources/template/css_xhtml/submit.ftl +++ b/core/src/main/resources/template/css_xhtml/submit.ftl @@ -31,7 +31,7 @@ <#if parameters.align??> - align="${parameters.align?html}"<#t/> + style="text-align: ${parameters.align?html};"<#t/> <#if parameters.id??> id="wwctrl_${parameters.id}"<#rt/> diff --git a/core/src/main/resources/template/simple/inputtransferselect.ftl b/core/src/main/resources/template/simple/inputtransferselect.ftl index 610eeb2aac..67cc01111f 100644 --- a/core/src/main/resources/template/simple/inputtransferselect.ftl +++ b/core/src/main/resources/template/simple/inputtransferselect.ftl @@ -61,7 +61,7 @@ - + <#assign addLabel=parameters.addLabel?default("->")?html /><#t/> <#t/> diff --git a/core/src/main/resources/template/simple/optiontransferselect.ftl b/core/src/main/resources/template/simple/optiontransferselect.ftl index 62136f723d..571652bfa7 100644 --- a/core/src/main/resources/template/simple/optiontransferselect.ftl +++ b/core/src/main/resources/template/simple/optiontransferselect.ftl @@ -47,7 +47,7 @@ - + <#if parameters.allowAddToLeft?default(true)><#t/> <#assign addToLeftLabel = parameters.addToLeftLabel?default("<-")?html/><#t/> <#if parameters.doubleHeaderKey??><#t/> diff --git a/core/src/main/resources/template/simple/table.ftl b/core/src/main/resources/template/simple/table.ftl index d7efb069fa..7d403cdd5d 100644 --- a/core/src/main/resources/template/simple/table.ftl +++ b/core/src/main/resources/template/simple/table.ftl @@ -24,7 +24,7 @@ <#assign tableModel = webTable.model/> <#if tableModel??> -

+

diff --git a/core/src/main/resources/template/xhtml/checkbox.ftl b/core/src/main/resources/template/xhtml/checkbox.ftl index 4504b3f618..e93157206e 100644 --- a/core/src/main/resources/template/xhtml/checkbox.ftl +++ b/core/src/main/resources/template/xhtml/checkbox.ftl @@ -28,7 +28,7 @@ errorFor="${parameters.id}"<#rt/> > - <#lt/> @@ -72,7 +72,7 @@ ${parameters.label?html}<#t/> <#include "/${parameters.templateDir}/simple/checkbox.ftl" /> <#else> - - - <#lt/> diff --git a/core/src/main/resources/template/xhtml/controlheader-core.ftl b/core/src/main/resources/template/xhtml/controlheader-core.ftl index 73302705fb..ec6b1acc61 100644 --- a/core/src/main/resources/template/xhtml/controlheader-core.ftl +++ b/core/src/main/resources/template/xhtml/controlheader-core.ftl @@ -29,7 +29,7 @@ <#if hasFieldErrors> <#list fieldErrors[parameters.name] as error> - <#lt/> @@ -47,7 +47,7 @@ --> <#if labelpos?default("") == 'top'> - - - - - - + - + - - - + - + - - - - diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-6.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-6.txt index 033de88641..0fa78fb2a5 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-6.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-6.txt @@ -1,7 +1,7 @@ - -
@@ -40,16 +40,16 @@ - - +
+ <#if false> - + <#else> - <@s.param name="${webTable.sortOrderLinkName}" value="ASC"/>"> + <@s.param name="${webTable.sortOrderLinkName}" value="ASC"/>">
<#rt/> + <#rt/> ${error?html}<#t/>
+ <#if labelpos?default("") == 'left'> <#if parameters.label??> <#if parameters.id??> @@ -107,7 +107,7 @@ ${parameters.label?html}<#t/> + <#if labelpos?default("") != 'top'> <#include "/${parameters.templateDir}/simple/checkbox.ftl" /> diff --git a/core/src/main/resources/template/xhtml/controlfooter.ftl b/core/src/main/resources/template/xhtml/controlfooter.ftl index 37da2f8643..afa1612ef8 100644 --- a/core/src/main/resources/template/xhtml/controlfooter.ftl +++ b/core/src/main/resources/template/xhtml/controlfooter.ftl @@ -28,7 +28,7 @@ ${parameters.after?if_exists}<#t/> <#if hasFieldErrors> <#list fieldErrors[parameters.name] as error>
<#rt/> + <#rt/> ${error?html}<#t/>
<#rt/> + <#rt/> ${error?html}<#t/>
<#rt/> + <#rt/> <#else> <#rt/> diff --git a/core/src/main/resources/template/xhtml/controlheader.ftl b/core/src/main/resources/template/xhtml/controlheader.ftl index 4a150586e5..a69bd39dfe 100644 --- a/core/src/main/resources/template/xhtml/controlheader.ftl +++ b/core/src/main/resources/template/xhtml/controlheader.ftl @@ -23,6 +23,6 @@ <#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader-core.ftl" /> - align="${parameters.align?html}"<#t/> + style="text-align: ${parameters.align?html};"<#t/> ><#t/> diff --git a/core/src/main/resources/template/xhtml/reset.ftl b/core/src/main/resources/template/xhtml/reset.ftl index 8e6e2b596e..34e0718a1f 100644 --- a/core/src/main/resources/template/xhtml/reset.ftl +++ b/core/src/main/resources/template/xhtml/reset.ftl @@ -23,7 +23,7 @@
<#if parameters.align??> - align="${parameters.align?html}"<#t/> + style="text-align: ${parameters.align?html};"<#t/> ><#t/> <#include "/${parameters.templateDir}/simple/reset.ftl" /> diff --git a/core/src/main/resources/template/xhtml/submit.ftl b/core/src/main/resources/template/xhtml/submit.ftl index 7b8292150f..71c8153a42 100644 --- a/core/src/main/resources/template/xhtml/submit.ftl +++ b/core/src/main/resources/template/xhtml/submit.ftl @@ -23,7 +23,7 @@
<#if parameters.align??> - align="${parameters.align?html}"<#t/> + style="text-align: ${parameters.align?html};"<#t/> ><#t/> <#include "/${parameters.templateDir}/simple/submit.ftl" /> diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-1.txt index 7a8637c9fa..6db63a0c0c 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-1.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-1.txt @@ -1,7 +1,7 @@
+ + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-2.txt index 73d7f50557..1a95592264 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-2.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-2.txt @@ -1,7 +1,7 @@
+ + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-3.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-3.txt index 5ba5904dbc..0e863cdbef 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-3.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-3.txt @@ -1,14 +1,14 @@
Some Foo ErrorSome Foo Error
Another Foo ErrorAnother Foo Error
+ + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-33.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-33.txt index b969e3ab00..d379d56ef0 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-33.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-33.txt @@ -1,14 +1,14 @@
Some Foo ErrorSome Foo Error
Another Foo ErrorAnother Foo Error
+ + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-5.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-5.txt index f281d2d3f4..e771e455aa 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-5.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-5.txt @@ -1,8 +1,8 @@
+ +
+ + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-27.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-27.txt index fab8cf3d36..4424175180 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-27.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-27.txt @@ -1,7 +1,7 @@
- + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Label-3.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Label-3.txt index b12f19af76..701c21bdb6 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Label-3.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Label-3.txt @@ -1,5 +1,5 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-1.txt index c89899be96..685b21f966 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-1.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-1.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-2.txt index 279c1432d4..7442b01ca9 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-2.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-2.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-3.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-3.txt index 9497bb669e..b22e46b72e 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-3.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-3.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-4.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-4.txt index 3fa4c37554..6bd92a65a3 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-4.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-4.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-5.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-5.txt index fbab3f6855..c426384548 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-5.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-5.txt @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-6.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-6.txt index 39a2906625..1a3d04b314 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-6.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-6.txt @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-1.txt index 9057dd2ea8..24a98d5121 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-1.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-1.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-2.txt index 42e7f1d98f..9a72d9970c 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-2.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-2.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-3.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-3.txt index a2e9c8a5da..f49d3d0e6d 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-3.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-3.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-4.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-4.txt index 17b846d388..67a127445b 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-4.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-4.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-5.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-5.txt index b55832d0bb..a4b3ccfa98 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-5.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-5.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-6.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-6.txt index 59b886d6f4..c80fedc4b1 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-6.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-6.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-2.txt index ae9d79e02a..99965b9911 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-2.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-2.txt @@ -1,5 +1,5 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-8.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-8.txt index e95f855b11..4ec1cdd536 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-8.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-8.txt @@ -7,7 +7,7 @@ - \ No newline at end of file diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-9.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-9.txt index 10cd6942b3..90950fbdc1 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-9.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-9.txt @@ -1,5 +1,5 @@ - diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/inputtransferselect-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/inputtransferselect-1.txt index 9b7f26da93..f62d399ab8 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/inputtransferselect-1.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/inputtransferselect-1.txt @@ -4,7 +4,7 @@ - - - - - - - - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-2.txt index b6d01a416c..0fa3cc7ef0 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-2.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-2.txt @@ -1,5 +1,5 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-3.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-3.txt index 5d7f8b35d8..7ffa50a417 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-3.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-3.txt @@ -1,5 +1,5 @@ - + From d0a6d6e895187422547d7e4a3e16d1276ba2e948 Mon Sep 17 00:00:00 2001 From: Aleksandr Mashchenko Date: Tue, 3 Jun 2014 19:38:43 +0300 Subject: [PATCH 2/7] js align and valign to style --- core/src/main/resources/template/xhtml/validation.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/main/resources/template/xhtml/validation.js b/core/src/main/resources/template/xhtml/validation.js index e63751b448..de4b0bd5dd 100644 --- a/core/src/main/resources/template/xhtml/validation.js +++ b/core/src/main/resources/template/xhtml/validation.js @@ -109,8 +109,7 @@ function addErrorXHTML(e, errorText) { var tr = document.createElement("tr"); var td = document.createElement("td"); var span = document.createElement("span"); - td.align = "center"; - td.valign = "top"; + td.style = "text-align: center; vertical-align: top;"; td.colSpan = 2; span.setAttribute("class", "errorMessage"); span.setAttribute("className", "errorMessage"); //ie hack cause ie does not support setAttribute From 8953ae3f24849b8f2db1ac3b45e846cc5f27c7a9 Mon Sep 17 00:00:00 2001 From: Aleksandr Mashchenko Date: Tue, 3 Jun 2014 20:15:03 +0300 Subject: [PATCH 3/7] bgcolor, cellpadding, cellspacing converted to css style in debug.ftl --- .../main/resources/template/simple/debug.ftl | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/core/src/main/resources/template/simple/debug.ftl b/core/src/main/resources/template/simple/debug.ftl index 8b2db3d6e0..17152bff71 100644 --- a/core/src/main/resources/template/simple/debug.ftl +++ b/core/src/main/resources/template/simple/debug.ftl @@ -35,6 +35,13 @@ } --> + +

${parameters.id?html}<#else>debug');return false;">[Debug] @@ -43,7 +50,7 @@

Value Stack Contents

-
bar error messagebar error message
+ barerrormessage
+ barerrormessage
+



diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-1.txt index 96e54ad2a8..d220bcd244 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-1.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-1.txt @@ -16,7 +16,7 @@
+

+

+

+

+

+

+

-
bar error messagebar error message
bar error messagebar error message
bar error messagebar error message
+
<#assign index=1> @@ -54,8 +61,8 @@ <#assign renderRow=false> <#list stackObject.value.keySet() as propertyName> <#if renderRow==true><#else> <#assign renderRow=false> - - + + <#assign index= index + 1> @@ -65,14 +72,14 @@

Stack Context

These items are available using the #key notation -
ObjectProperty NameProperty Value
${propertyName}<#if stackObject.value.get(propertyName)??>${stackObject.value.get(propertyName).toString()?html}<#else>null${propertyName}<#if stackObject.value.get(propertyName)??>${stackObject.value.get(propertyName).toString()?html}<#else>null
+
<#assign index=1> <#list stack.context.keySet() as contextKey> - + From af0f3cf1d1ba589ae7654ef9408d8f35c342b333 Mon Sep 17 00:00:00 2001 From: Aleksandr Mashchenko Date: Thu, 5 Jun 2014 09:47:07 +0300 Subject: [PATCH 4/7] replaced inline styles with classes --- core/src/main/resources/template/css_xhtml/reset.ftl | 2 +- core/src/main/resources/template/css_xhtml/styles.css | 7 +++++++ core/src/main/resources/template/css_xhtml/submit.ftl | 2 +- .../resources/template/simple/inputtransferselect.ftl | 2 +- .../resources/template/simple/optiontransferselect.ftl | 2 +- core/src/main/resources/template/simple/table.ftl | 10 +++++----- core/src/main/resources/template/xhtml/checkbox.ftl | 6 +++--- .../main/resources/template/xhtml/controlfooter.ftl | 2 +- .../resources/template/xhtml/controlheader-core.ftl | 4 ++-- .../main/resources/template/xhtml/controlheader.ftl | 2 +- core/src/main/resources/template/xhtml/reset.ftl | 2 +- core/src/main/resources/template/xhtml/styles.css | 9 ++++++++- core/src/main/resources/template/xhtml/submit.ftl | 2 +- core/src/main/resources/template/xhtml/validation.js | 2 +- .../org/apache/struts2/views/jsp/ui/Checkbox-1.txt | 4 ++-- .../org/apache/struts2/views/jsp/ui/Checkbox-2.txt | 4 ++-- .../org/apache/struts2/views/jsp/ui/Checkbox-3.txt | 8 ++++---- .../org/apache/struts2/views/jsp/ui/Checkbox-33.txt | 8 ++++---- .../org/apache/struts2/views/jsp/ui/Checkbox-5.txt | 4 ++-- .../org/apache/struts2/views/jsp/ui/Checkbox-6.txt | 4 ++-- .../org/apache/struts2/views/jsp/ui/Formtag-27.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Label-3.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Reset-1.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Reset-2.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Reset-3.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Reset-4.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Reset-5.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Reset-6.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Submit-1.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Submit-2.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Submit-3.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Submit-4.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Submit-5.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Submit-6.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Textfield-2.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Textfield-8.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Textfield-9.txt | 2 +- .../struts2/views/jsp/ui/inputtransferselect-1.txt | 2 +- .../struts2/views/jsp/ui/optiontransferselect-1.txt | 2 +- .../struts2/views/jsp/ui/optiontransferselect-2.txt | 2 +- .../struts2/views/jsp/ui/optiontransferselect-3.txt | 2 +- .../struts2/views/jsp/ui/optiontransferselect-4.txt | 2 +- .../struts2/views/jsp/ui/optiontransferselect-5.txt | 2 +- .../struts2/views/jsp/ui/optiontransferselect-6.txt | 2 +- .../struts2/views/jsp/ui/optiontransferselect-7.txt | 2 +- .../apache/struts2/views/jsp/ui/validationstyles-1.txt | 2 +- .../apache/struts2/views/jsp/ui/validationstyles-2.txt | 2 +- .../apache/struts2/views/jsp/ui/validationstyles-3.txt | 2 +- 48 files changed, 78 insertions(+), 64 deletions(-) diff --git a/core/src/main/resources/template/css_xhtml/reset.ftl b/core/src/main/resources/template/css_xhtml/reset.ftl index ab6f6efaba..6d7734f999 100644 --- a/core/src/main/resources/template/css_xhtml/reset.ftl +++ b/core/src/main/resources/template/css_xhtml/reset.ftl @@ -31,7 +31,7 @@ <#if parameters.align??> - style="text-align: ${parameters.align?html};"<#t/> + align="${parameters.align?html}"<#t/> <#if parameters.id??> id="wwctrl_${parameters.id}"<#rt/> diff --git a/core/src/main/resources/template/css_xhtml/styles.css b/core/src/main/resources/template/css_xhtml/styles.css index d17b53cf67..08a70f403c 100644 --- a/core/src/main/resources/template/css_xhtml/styles.css +++ b/core/src/main/resources/template/css_xhtml/styles.css @@ -30,3 +30,10 @@ .checkboxLabel {} .checkboxErrorLabel {color:red; } .required {color:red;} + +.tdTransferSelect {text-align:center; vertical-align:middle;} +.tdLabelTop {text-align:left; vertical-align:top;} +.tdCheckboxLabel {text-align:right; vertical-align:top;} +.tdCheckboxInput {text-align:left; vertical-align:top;} +.tdCheckboxErrorMessage {text-align:left; vertical-align:top;} +.tdErrorMessage {text-align:center; vertical-align:top;} diff --git a/core/src/main/resources/template/css_xhtml/submit.ftl b/core/src/main/resources/template/css_xhtml/submit.ftl index b981d669a7..ffb4df99a3 100644 --- a/core/src/main/resources/template/css_xhtml/submit.ftl +++ b/core/src/main/resources/template/css_xhtml/submit.ftl @@ -31,7 +31,7 @@ <#if parameters.align??> - style="text-align: ${parameters.align?html};"<#t/> + align="${parameters.align?html}"<#t/> <#if parameters.id??> id="wwctrl_${parameters.id}"<#rt/> diff --git a/core/src/main/resources/template/simple/inputtransferselect.ftl b/core/src/main/resources/template/simple/inputtransferselect.ftl index 67cc01111f..20c3084cea 100644 --- a/core/src/main/resources/template/simple/inputtransferselect.ftl +++ b/core/src/main/resources/template/simple/inputtransferselect.ftl @@ -61,7 +61,7 @@ - -
KeyValue
${contextKey} <#if stack.context.get(contextKey)??>${struts.toStringSafe(stack.context.get(contextKey))?html}<#else>null
+ <#assign addLabel=parameters.addLabel?default("->")?html /><#t/> <#t/> diff --git a/core/src/main/resources/template/simple/optiontransferselect.ftl b/core/src/main/resources/template/simple/optiontransferselect.ftl index 571652bfa7..6fa85a8329 100644 --- a/core/src/main/resources/template/simple/optiontransferselect.ftl +++ b/core/src/main/resources/template/simple/optiontransferselect.ftl @@ -47,7 +47,7 @@ + <#if parameters.allowAddToLeft?default(true)><#t/> <#assign addToLeftLabel = parameters.addToLeftLabel?default("<-")?html/><#t/> <#if parameters.doubleHeaderKey??><#t/> diff --git a/core/src/main/resources/template/simple/table.ftl b/core/src/main/resources/template/simple/table.ftl index 7d403cdd5d..d7efb069fa 100644 --- a/core/src/main/resources/template/simple/table.ftl +++ b/core/src/main/resources/template/simple/table.ftl @@ -24,7 +24,7 @@ <#assign tableModel = webTable.model/> <#if tableModel??> -

+

diff --git a/core/src/main/resources/template/xhtml/checkbox.ftl b/core/src/main/resources/template/xhtml/checkbox.ftl index e93157206e..d845065386 100644 --- a/core/src/main/resources/template/xhtml/checkbox.ftl +++ b/core/src/main/resources/template/xhtml/checkbox.ftl @@ -28,7 +28,7 @@ errorFor="${parameters.id}"<#rt/> > - <#lt/> @@ -72,7 +72,7 @@ ${parameters.label?html}<#t/> <#include "/${parameters.templateDir}/simple/checkbox.ftl" /> <#else> - - - <#lt/> diff --git a/core/src/main/resources/template/xhtml/controlheader-core.ftl b/core/src/main/resources/template/xhtml/controlheader-core.ftl index ec6b1acc61..5835a8434f 100644 --- a/core/src/main/resources/template/xhtml/controlheader-core.ftl +++ b/core/src/main/resources/template/xhtml/controlheader-core.ftl @@ -29,7 +29,7 @@ <#if hasFieldErrors> <#list fieldErrors[parameters.name] as error> - <#lt/> @@ -47,7 +47,7 @@ --> <#if labelpos?default("") == 'top'> - - - - - - + - + - - - + - + - - - - diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-6.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-6.txt index 0fa78fb2a5..c54c8629ad 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-6.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-6.txt @@ -1,7 +1,7 @@ - -
@@ -40,16 +40,16 @@ - - +
+ <#if false> - + <#else> - <@s.param name="${webTable.sortOrderLinkName}" value="ASC"/>"> + <@s.param name="${webTable.sortOrderLinkName}" value="ASC"/>">
<#rt/> + <#rt/> ${error?html}<#t/>
+ <#if labelpos?default("") == 'left'> <#if parameters.label??> <#if parameters.id??> @@ -107,7 +107,7 @@ ${parameters.label?html}<#t/> + <#if labelpos?default("") != 'top'> <#include "/${parameters.templateDir}/simple/checkbox.ftl" /> diff --git a/core/src/main/resources/template/xhtml/controlfooter.ftl b/core/src/main/resources/template/xhtml/controlfooter.ftl index afa1612ef8..ef3f3caefd 100644 --- a/core/src/main/resources/template/xhtml/controlfooter.ftl +++ b/core/src/main/resources/template/xhtml/controlfooter.ftl @@ -28,7 +28,7 @@ ${parameters.after?if_exists}<#t/> <#if hasFieldErrors> <#list fieldErrors[parameters.name] as error>
<#rt/> + <#rt/> ${error?html}<#t/>
<#rt/> + <#rt/> ${error?html}<#t/>
<#rt/> + <#rt/> <#else> <#rt/> diff --git a/core/src/main/resources/template/xhtml/controlheader.ftl b/core/src/main/resources/template/xhtml/controlheader.ftl index a69bd39dfe..4a150586e5 100644 --- a/core/src/main/resources/template/xhtml/controlheader.ftl +++ b/core/src/main/resources/template/xhtml/controlheader.ftl @@ -23,6 +23,6 @@ <#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader-core.ftl" /> - style="text-align: ${parameters.align?html};"<#t/> + align="${parameters.align?html}"<#t/> ><#t/> diff --git a/core/src/main/resources/template/xhtml/reset.ftl b/core/src/main/resources/template/xhtml/reset.ftl index 34e0718a1f..8e6e2b596e 100644 --- a/core/src/main/resources/template/xhtml/reset.ftl +++ b/core/src/main/resources/template/xhtml/reset.ftl @@ -23,7 +23,7 @@
<#if parameters.align??> - style="text-align: ${parameters.align?html};"<#t/> + align="${parameters.align?html}"<#t/> ><#t/> <#include "/${parameters.templateDir}/simple/reset.ftl" /> diff --git a/core/src/main/resources/template/xhtml/styles.css b/core/src/main/resources/template/xhtml/styles.css index dd549049b1..39fea48f3d 100644 --- a/core/src/main/resources/template/xhtml/styles.css +++ b/core/src/main/resources/template/xhtml/styles.css @@ -26,4 +26,11 @@ .checkboxLabel {} .checkboxErrorLabel {color:red; } .required {color:red;} -.tdLabel {text-align:right; vertical-align:top; } +.tdLabel {text-align:right; vertical-align:top; } + +.tdTransferSelect {text-align:center; vertical-align:middle;} +.tdLabelTop {text-align:left; vertical-align:top;} +.tdCheckboxLabel {text-align:right; vertical-align:top;} +.tdCheckboxInput {text-align:left; vertical-align:top;} +.tdCheckboxErrorMessage {text-align:left; vertical-align:top;} +.tdErrorMessage {text-align:center; vertical-align:top;} diff --git a/core/src/main/resources/template/xhtml/submit.ftl b/core/src/main/resources/template/xhtml/submit.ftl index 71c8153a42..7b8292150f 100644 --- a/core/src/main/resources/template/xhtml/submit.ftl +++ b/core/src/main/resources/template/xhtml/submit.ftl @@ -23,7 +23,7 @@
<#if parameters.align??> - style="text-align: ${parameters.align?html};"<#t/> + align="${parameters.align?html}"<#t/> ><#t/> <#include "/${parameters.templateDir}/simple/submit.ftl" /> diff --git a/core/src/main/resources/template/xhtml/validation.js b/core/src/main/resources/template/xhtml/validation.js index de4b0bd5dd..feb1a9d143 100644 --- a/core/src/main/resources/template/xhtml/validation.js +++ b/core/src/main/resources/template/xhtml/validation.js @@ -109,7 +109,7 @@ function addErrorXHTML(e, errorText) { var tr = document.createElement("tr"); var td = document.createElement("td"); var span = document.createElement("span"); - td.style = "text-align: center; vertical-align: top;"; + td.className = "tdErrorMessage"; td.colSpan = 2; span.setAttribute("class", "errorMessage"); span.setAttribute("className", "errorMessage"); //ie hack cause ie does not support setAttribute diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-1.txt index 6db63a0c0c..b746088d27 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-1.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-1.txt @@ -1,7 +1,7 @@
+ + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-2.txt index 1a95592264..caf46327b7 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-2.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-2.txt @@ -1,7 +1,7 @@
+ + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-3.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-3.txt index 0e863cdbef..68b91f3235 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-3.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-3.txt @@ -1,14 +1,14 @@
Some Foo ErrorSome Foo Error
Another Foo ErrorAnother Foo Error
+ + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-33.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-33.txt index d379d56ef0..ef05dc427c 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-33.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-33.txt @@ -1,14 +1,14 @@
Some Foo ErrorSome Foo Error
Another Foo ErrorAnother Foo Error
+ + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-5.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-5.txt index e771e455aa..49e093cae4 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-5.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-5.txt @@ -1,8 +1,8 @@
+ +
+ + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-27.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-27.txt index 4424175180..a9b92445ca 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-27.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-27.txt @@ -1,7 +1,7 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Label-3.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Label-3.txt index 701c21bdb6..d66737f62d 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Label-3.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Label-3.txt @@ -1,5 +1,5 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-1.txt index 685b21f966..c89899be96 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-1.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-1.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-2.txt index 7442b01ca9..279c1432d4 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-2.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-2.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-3.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-3.txt index b22e46b72e..9497bb669e 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-3.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-3.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-4.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-4.txt index 6bd92a65a3..3fa4c37554 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-4.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-4.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-5.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-5.txt index c426384548..fbab3f6855 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-5.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-5.txt @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-6.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-6.txt index 1a3d04b314..39a2906625 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-6.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-6.txt @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-1.txt index 24a98d5121..9057dd2ea8 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-1.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-1.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-2.txt index 9a72d9970c..42e7f1d98f 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-2.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-2.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-3.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-3.txt index f49d3d0e6d..a2e9c8a5da 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-3.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-3.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-4.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-4.txt index 67a127445b..17b846d388 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-4.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-4.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-5.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-5.txt index a4b3ccfa98..b55832d0bb 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-5.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-5.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-6.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-6.txt index c80fedc4b1..59b886d6f4 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-6.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-6.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-2.txt index 99965b9911..fc370890b7 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-2.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-2.txt @@ -1,5 +1,5 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-8.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-8.txt index 4ec1cdd536..b3e3addc91 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-8.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-8.txt @@ -7,7 +7,7 @@ - \ No newline at end of file diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-9.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-9.txt index 90950fbdc1..a0cb054490 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-9.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Textfield-9.txt @@ -1,5 +1,5 @@ - diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/inputtransferselect-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/inputtransferselect-1.txt index f62d399ab8..e3acfbcc64 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/inputtransferselect-1.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/inputtransferselect-1.txt @@ -4,7 +4,7 @@ - - - - - - - - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-2.txt index 0fa3cc7ef0..e965d43227 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-2.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-2.txt @@ -1,5 +1,5 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-3.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-3.txt index 7ffa50a417..67d52b2479 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-3.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/validationstyles-3.txt @@ -1,5 +1,5 @@ - + From a0b34806b0f700a1fd240b698c4cec474711bbd0 Mon Sep 17 00:00:00 2001 From: Aleksandr Mashchenko Date: Mon, 16 Jun 2014 23:09:02 +0300 Subject: [PATCH 5/7] removed FormButton align attribute --- .../java/org/apache/struts2/components/FormButton.java | 10 ---------- .../java/org/apache/struts2/views/jsp/ui/ResetTag.java | 6 ------ .../org/apache/struts2/views/jsp/ui/SubmitTag.java | 6 ------ core/src/main/resources/template/css_xhtml/reset.ftl | 4 +--- core/src/main/resources/template/css_xhtml/styles.css | 1 + core/src/main/resources/template/css_xhtml/submit.ftl | 4 +--- .../main/resources/template/xhtml/controlheader.ftl | 3 --- core/src/main/resources/template/xhtml/reset.ftl | 6 +----- core/src/main/resources/template/xhtml/styles.css | 1 + core/src/main/resources/template/xhtml/submit.ftl | 6 +----- core/src/site/resources/tags/reset.html | 8 -------- core/src/site/resources/tags/submit.html | 8 -------- .../org/apache/struts2/views/jsp/ui/ResetTest.java | 5 ----- .../org/apache/struts2/views/jsp/ui/SubmitTest.java | 5 ----- .../org/apache/struts2/views/jsp/ui/Reset-1.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Reset-2.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Reset-3.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Reset-4.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Reset-5.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Reset-6.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Submit-1.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Submit-2.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Submit-3.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Submit-4.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Submit-5.txt | 2 +- .../org/apache/struts2/views/jsp/ui/Submit-6.txt | 2 +- 26 files changed, 18 insertions(+), 79 deletions(-) diff --git a/core/src/main/java/org/apache/struts2/components/FormButton.java b/core/src/main/java/org/apache/struts2/components/FormButton.java index 2bd66c3ed6..ab99679cdc 100644 --- a/core/src/main/java/org/apache/struts2/components/FormButton.java +++ b/core/src/main/java/org/apache/struts2/components/FormButton.java @@ -42,7 +42,6 @@ public abstract class FormButton extends ClosingUIBean { protected String action; protected String method; - protected String align; protected String type; public FormButton(ValueStack stack, HttpServletRequest request, HttpServletResponse response) { @@ -52,9 +51,6 @@ public FormButton(ValueStack stack, HttpServletRequest request, HttpServletRespo //public void evaluateParams() { public void evaluateExtraParams() { super.evaluateExtraParams(); - if (align == null) { - align = "right"; - } String submitType = BUTTONTYPE_INPUT; if (type != null && (BUTTONTYPE_BUTTON.equalsIgnoreCase(type) || (supportsImageType() && BUTTONTYPE_IMAGE.equalsIgnoreCase(type)))) @@ -88,8 +84,6 @@ public void evaluateExtraParams() { addParameter("name", name); } - addParameter("align", findString(align)); - } /** @@ -158,10 +152,6 @@ public void setMethod(String method) { this.method = method; } - @StrutsTagAttribute(description="HTML align attribute.") - public void setAlign(String align) { - this.align = align; - } @StrutsTagAttribute(description="The type of submit to use. Valid values are input, " + "button and image.", defaultValue="input") diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/ResetTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/ResetTag.java index b1cc369b1a..e266d6ee70 100644 --- a/core/src/main/java/org/apache/struts2/views/jsp/ui/ResetTag.java +++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/ResetTag.java @@ -37,7 +37,6 @@ public class ResetTag extends AbstractUITag { protected String action; protected String method; - protected String align; protected String type; protected String src; @@ -51,7 +50,6 @@ protected void populateParams() { Reset reset = ((Reset) component); reset.setAction(action); reset.setMethod(method); - reset.setAlign(align); reset.setType(type); reset.setSrc(src); } @@ -64,10 +62,6 @@ public void setMethod(String method) { this.method = method; } - public void setAlign(String align) { - this.align = align; - } - public void setType(String type) { this.type = type; } diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/SubmitTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/SubmitTag.java index 4cac5bf9e2..bdb7b3b446 100644 --- a/core/src/main/java/org/apache/struts2/views/jsp/ui/SubmitTag.java +++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/SubmitTag.java @@ -38,7 +38,6 @@ public class SubmitTag extends AbstractClosingTag { protected String action; protected String method; - protected String align; protected String type; protected String src; @@ -52,7 +51,6 @@ protected void populateParams() { Submit submit = ((Submit) component); submit.setAction(action); submit.setMethod(method); - submit.setAlign(align); submit.setType(type); submit.setSrc(src); } @@ -65,10 +63,6 @@ public void setMethod(String method) { this.method = method; } - public void setAlign(String align) { - this.align = align; - } - public String getType() { return type; } diff --git a/core/src/main/resources/template/css_xhtml/reset.ftl b/core/src/main/resources/template/css_xhtml/reset.ftl index 6d7734f999..9c3a40af36 100644 --- a/core/src/main/resources/template/css_xhtml/reset.ftl +++ b/core/src/main/resources/template/css_xhtml/reset.ftl @@ -30,9 +30,7 @@ <#else> -<#if parameters.align??> - align="${parameters.align?html}"<#t/> - + class="formButton"<#t/> <#if parameters.id??> id="wwctrl_${parameters.id}"<#rt/> diff --git a/core/src/main/resources/template/css_xhtml/styles.css b/core/src/main/resources/template/css_xhtml/styles.css index 08a70f403c..76babfc70c 100644 --- a/core/src/main/resources/template/css_xhtml/styles.css +++ b/core/src/main/resources/template/css_xhtml/styles.css @@ -37,3 +37,4 @@ .tdCheckboxInput {text-align:left; vertical-align:top;} .tdCheckboxErrorMessage {text-align:left; vertical-align:top;} .tdErrorMessage {text-align:center; vertical-align:top;} +.formButton {text-align:right;} diff --git a/core/src/main/resources/template/css_xhtml/submit.ftl b/core/src/main/resources/template/css_xhtml/submit.ftl index ffb4df99a3..1611ffb5ff 100644 --- a/core/src/main/resources/template/css_xhtml/submit.ftl +++ b/core/src/main/resources/template/css_xhtml/submit.ftl @@ -30,9 +30,7 @@ <#else> -<#if parameters.align??> - align="${parameters.align?html}"<#t/> - + class="formButton"<#t/> <#if parameters.id??> id="wwctrl_${parameters.id}"<#rt/> diff --git a/core/src/main/resources/template/xhtml/controlheader.ftl b/core/src/main/resources/template/xhtml/controlheader.ftl index 4a150586e5..e1209cd315 100644 --- a/core/src/main/resources/template/xhtml/controlheader.ftl +++ b/core/src/main/resources/template/xhtml/controlheader.ftl @@ -22,7 +22,4 @@ --> <#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader-core.ftl" /> - - - - - - - - - - diff --git a/core/src/site/resources/tags/submit.html b/core/src/site/resources/tags/submit.html index 61da0977fe..8f8090ed48 100644 --- a/core/src/site/resources/tags/submit.html +++ b/core/src/site/resources/tags/submit.html @@ -49,14 +49,6 @@

Attributes

- - - - - - - - diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ui/ResetTest.java b/core/src/test/java/org/apache/struts2/views/jsp/ui/ResetTest.java index 90d5759b3b..64a3b15714 100644 --- a/core/src/test/java/org/apache/struts2/views/jsp/ui/ResetTest.java +++ b/core/src/test/java/org/apache/struts2/views/jsp/ui/ResetTest.java @@ -57,7 +57,6 @@ public void testSimple() throws Exception { ResetTag tag = new ResetTag(); tag.setPageContext(pageContext); tag.setLabel("mylabel"); - tag.setAlign("left"); tag.setName("myname"); tag.setValue("%{foo}"); @@ -91,7 +90,6 @@ public void testButtonWithLabel() throws Exception { tag.setPageContext(pageContext); tag.setLabel("mylabel"); tag.setType("button"); - tag.setAlign("left"); tag.setName("myname"); tag.setValue("%{foo}"); @@ -166,7 +164,6 @@ public void testSimpleThemeImageUsingActionAndMethod() throws Exception { tag.setLabel("mylabel"); tag.setAction("manager"); tag.setMethod("update"); - tag.setAlign("left"); tag.doStartTag(); tag.doEndTag(); @@ -186,7 +183,6 @@ public void testSimpleThemeImageUsingActionOnly() throws Exception { tag.setLabel("mylabel"); tag.setAction("manager"); tag.setMethod(null); // no method - tag.setAlign("left"); tag.doStartTag(); tag.doEndTag(); @@ -206,7 +202,6 @@ public void testSimpleThemeImageUsingMethodOnly() throws Exception { tag.setLabel("mylabel"); tag.setAction(null); // no action tag.setMethod("update"); - tag.setAlign("left"); tag.doStartTag(); tag.doEndTag(); diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ui/SubmitTest.java b/core/src/test/java/org/apache/struts2/views/jsp/ui/SubmitTest.java index 41f0cc5b01..df0f4322f5 100644 --- a/core/src/test/java/org/apache/struts2/views/jsp/ui/SubmitTest.java +++ b/core/src/test/java/org/apache/struts2/views/jsp/ui/SubmitTest.java @@ -78,7 +78,6 @@ public void testSimple() throws Exception { SubmitTag tag = new SubmitTag(); tag.setPageContext(pageContext); tag.setLabel("mylabel"); - tag.setAlign("left"); tag.setName("myname"); tag.setValue("%{foo}"); tag.setDisabled("true"); @@ -116,7 +115,6 @@ public void testButtonWithLabel() throws Exception { tag.setPageContext(pageContext); tag.setLabel("mylabel"); tag.setType("button"); - tag.setAlign("left"); tag.setName("myname"); tag.setValue("%{foo}"); @@ -173,7 +171,6 @@ public void testSimpleThemeImageUsingActionAndMethod() throws Exception { tag.setLabel("mylabel"); tag.setAction("manager"); tag.setMethod("update"); - tag.setAlign("left"); tag.doStartTag(); tag.doEndTag(); @@ -193,7 +190,6 @@ public void testSimpleThemeImageUsingActionOnly() throws Exception { tag.setLabel("mylabel"); tag.setAction("manager"); tag.setMethod(null); // no method - tag.setAlign("left"); tag.doStartTag(); tag.doEndTag(); @@ -213,7 +209,6 @@ public void testSimpleThemeImageUsingMethodOnly() throws Exception { tag.setLabel("mylabel"); tag.setAction(null); // no action tag.setMethod("update"); - tag.setAlign("left"); tag.doStartTag(); tag.doEndTag(); diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-1.txt index c89899be96..699faf7013 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-1.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-1.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-2.txt index 279c1432d4..2344fec7ae 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-2.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-2.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-3.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-3.txt index 9497bb669e..a9f63c05f5 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-3.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-3.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-4.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-4.txt index 3fa4c37554..31707b3269 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-4.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-4.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-5.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-5.txt index fbab3f6855..c94fd1d94e 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-5.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-5.txt @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-6.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-6.txt index 39a2906625..6e1526bf67 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-6.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Reset-6.txt @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-1.txt index 9057dd2ea8..ef5882ccbe 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-1.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-1.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-2.txt index 42e7f1d98f..36b1554f55 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-2.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-2.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-3.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-3.txt index a2e9c8a5da..92fed2bd2b 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-3.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-3.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-4.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-4.txt index 17b846d388..c70f19f080 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-4.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-4.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-5.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-5.txt index b55832d0bb..d83c44fcf0 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-5.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-5.txt @@ -1,3 +1,3 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-6.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-6.txt index 59b886d6f4..9cd5d0246d 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-6.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-6.txt @@ -1,3 +1,3 @@ - + From 94f8be90a81d54ec40748d6a02e292a5d46a3293 Mon Sep 17 00:00:00 2001 From: Aleksandr Mashchenko Date: Mon, 16 Jun 2014 23:12:19 +0300 Subject: [PATCH 6/7] removed border from transferselects tables --- core/src/main/resources/template/simple/inputtransferselect.ftl | 2 +- .../src/main/resources/template/simple/optiontransferselect.ftl | 2 +- .../org/apache/struts2/views/jsp/ui/inputtransferselect-1.txt | 2 +- .../org/apache/struts2/views/jsp/ui/optiontransferselect-1.txt | 2 +- .../org/apache/struts2/views/jsp/ui/optiontransferselect-2.txt | 2 +- .../org/apache/struts2/views/jsp/ui/optiontransferselect-3.txt | 2 +- .../org/apache/struts2/views/jsp/ui/optiontransferselect-4.txt | 2 +- .../org/apache/struts2/views/jsp/ui/optiontransferselect-5.txt | 2 +- .../org/apache/struts2/views/jsp/ui/optiontransferselect-6.txt | 2 +- .../org/apache/struts2/views/jsp/ui/optiontransferselect-7.txt | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/src/main/resources/template/simple/inputtransferselect.ftl b/core/src/main/resources/template/simple/inputtransferselect.ftl index 20c3084cea..afef1615e6 100644 --- a/core/src/main/resources/template/simple/inputtransferselect.ftl +++ b/core/src/main/resources/template/simple/inputtransferselect.ftl @@ -24,7 +24,7 @@ <#assign temporaryVariable = stack.setValue("#inputtransferselect_js_included", "true") /><#t/> <#t/> -
bar error messagebar error message
+ barerrormessage
+ barerrormessage
+



diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-1.txt index d220bcd244..b28df02379 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-1.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-1.txt @@ -16,7 +16,7 @@
+

+

+

+

+

+

+

-
bar error messagebar error message
bar error messagebar error message
bar error messagebar error message
- align="${parameters.align?html}"<#t/> - ><#t/> diff --git a/core/src/main/resources/template/xhtml/reset.ftl b/core/src/main/resources/template/xhtml/reset.ftl index 8e6e2b596e..7d6121c389 100644 --- a/core/src/main/resources/template/xhtml/reset.ftl +++ b/core/src/main/resources/template/xhtml/reset.ftl @@ -21,11 +21,7 @@ */ -->
-<#if parameters.align??> - align="${parameters.align?html}"<#t/> - -><#t/> +
<#t/> <#include "/${parameters.templateDir}/simple/reset.ftl" />
<#t/> <#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" /> diff --git a/core/src/main/resources/template/xhtml/styles.css b/core/src/main/resources/template/xhtml/styles.css index 39fea48f3d..91d5171eee 100644 --- a/core/src/main/resources/template/xhtml/styles.css +++ b/core/src/main/resources/template/xhtml/styles.css @@ -34,3 +34,4 @@ .tdCheckboxInput {text-align:left; vertical-align:top;} .tdCheckboxErrorMessage {text-align:left; vertical-align:top;} .tdErrorMessage {text-align:center; vertical-align:top;} +.formButton {text-align:right;} diff --git a/core/src/main/resources/template/xhtml/submit.ftl b/core/src/main/resources/template/xhtml/submit.ftl index 7b8292150f..989e816560 100644 --- a/core/src/main/resources/template/xhtml/submit.ftl +++ b/core/src/main/resources/template/xhtml/submit.ftl @@ -21,9 +21,5 @@ */ -->
-<#if parameters.align??> - align="${parameters.align?html}"<#t/> - -><#t/> +
<#t/> <#include "/${parameters.templateDir}/simple/submit.ftl" /> diff --git a/core/src/site/resources/tags/reset.html b/core/src/site/resources/tags/reset.html index e7d2c5e812..0019d5fd22 100644 --- a/core/src/site/resources/tags/reset.html +++ b/core/src/site/resources/tags/reset.html @@ -49,14 +49,6 @@

Attributes

String Set action attribute.
alignfalsefalseStringHTML align attribute.
cssClass false String Set action attribute.
alignfalsefalseStringHTML align attribute.
cssClass false
+
<#if parameters.leftTitle??><#t/> diff --git a/core/src/main/resources/template/simple/optiontransferselect.ftl b/core/src/main/resources/template/simple/optiontransferselect.ftl index 6fa85a8329..c685956815 100644 --- a/core/src/main/resources/template/simple/optiontransferselect.ftl +++ b/core/src/main/resources/template/simple/optiontransferselect.ftl @@ -24,7 +24,7 @@ <#assign temporaryVariable = stack.setValue("#optiontransferselect_js_included", "true") /><#t/> <#t/> - +
<#if parameters.leftTitle??><#t/> diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/inputtransferselect-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/inputtransferselect-1.txt index e3acfbcc64..47324f3471 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/inputtransferselect-1.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/inputtransferselect-1.txt @@ -2,7 +2,7 @@ - +


diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-1.txt index b28df02379..be8fd8fced 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-1.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-1.txt @@ -2,7 +2,7 @@
- +

diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-2.txt index ce55f655c4..3e3642190e 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-2.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-2.txt @@ -2,7 +2,7 @@
- +

diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-3.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-3.txt index 13be1dfa43..a7905457bf 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-3.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-3.txt @@ -2,7 +2,7 @@
- +

diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-4.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-4.txt index 3e55b069d9..4454ed2f92 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-4.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-4.txt @@ -2,7 +2,7 @@
- +

diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-5.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-5.txt index 0e9bdd91a2..cbcde657c6 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-5.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-5.txt @@ -2,7 +2,7 @@
- +

diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-6.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-6.txt index 992c30bc71..68f689b7bd 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-6.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-6.txt @@ -2,7 +2,7 @@
- +

diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-7.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-7.txt index 0392c0a570..75f5aaf4cd 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-7.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/optiontransferselect-7.txt @@ -2,7 +2,7 @@
- +
- - - - - - - - diff --git a/core/src/site/resources/tags/submit.html b/core/src/site/resources/tags/submit.html index b3139eccaa..d1b7e1db8c 100644 --- a/core/src/site/resources/tags/submit.html +++ b/core/src/site/resources/tags/submit.html @@ -49,14 +49,6 @@

Attributes

- - - - - - - -

From bcf4d80b48dcb68c1c511e109cbc5214586c9e45 Mon Sep 17 00:00:00 2001 From: Aleksandr Mashchenko Date: Fri, 26 Jun 2015 01:02:16 +0300 Subject: [PATCH 7/7] site html-s --- core/src/site/resources/tags/reset.html | 8 -------- core/src/site/resources/tags/submit.html | 8 -------- 2 files changed, 16 deletions(-) diff --git a/core/src/site/resources/tags/reset.html b/core/src/site/resources/tags/reset.html index 42528ededb..006302af35 100644 --- a/core/src/site/resources/tags/reset.html +++ b/core/src/site/resources/tags/reset.html @@ -49,14 +49,6 @@

Attributes

String Set action attribute.
alignfalsefalseStringHTML align attribute.
class false String Set action attribute.
alignfalsefalseStringHTML align attribute.
class false