<#if parameters.leftTitle??><#t/>
@@ -47,7 +47,7 @@
#if>
|
-
+ |
<#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/xhtml/checkbox.ftl b/core/src/main/resources/template/xhtml/checkbox.ftl
index 4504b3f618..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/>
#if>
>
- | <#rt/>
+ | <#rt/>
${error?html}<#t/>
| <#lt/>
@@ -72,7 +72,7 @@ ${parameters.label?html}<#t/>
<#include "/${parameters.templateDir}/simple/checkbox.ftl" />
<#else>
-
+ |
<#if labelpos?default("") == 'left'>
<#if parameters.label??>
<#if parameters.id??>
@@ -107,7 +107,7 @@ ${parameters.label?html}<#t/>
#if>
#if>
|
-
+ |
<#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..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/>
| <#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..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>
- <#rt/>
+ | <#rt/>
${error?html}<#t/>
| <#lt/>
@@ -47,7 +47,7 @@
-->
<#if labelpos?default("") == 'top'>
- <#rt/>
+ | <#rt/>
<#else>
| <#rt/>
#if>
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" />
|
- align="${parameters.align?html}"<#t/>
-#if>
><#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/>
-#if>
-><#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 dd549049b1..91d5171eee 100644
--- a/core/src/main/resources/template/xhtml/styles.css
+++ b/core/src/main/resources/template/xhtml/styles.css
@@ -26,4 +26,12 @@
.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;}
+.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/>
-#if>
-><#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 e63751b448..feb1a9d143 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.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/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. |
-
- align |
- false |
- |
- false |
- String |
- HTML align attribute. |
-
class |
false |
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
String |
Set action attribute. |
-
- align |
- false |
- |
- false |
- String |
- HTML align attribute. |
-
class |
false |
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/Checkbox-1.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-1.txt
index 7a8637c9fa..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 73d7f50557..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 5ba5904dbc..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 Error |
+ Some Foo Error |
- Another Foo Error |
+ Another 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..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 Error |
+ Some Foo Error |
- Another Foo Error |
+ Another 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..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/Checkbox-6.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Checkbox-6.txt
index 033de88641..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 @@
-
+ |
|
-
+ |
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..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 @@
|