diff --git a/core/src/main/java/org/apache/struts2/components/UIBean.java b/core/src/main/java/org/apache/struts2/components/UIBean.java
index 51b7e7932..e2d84bf80 100644
--- a/core/src/main/java/org/apache/struts2/components/UIBean.java
+++ b/core/src/main/java/org/apache/struts2/components/UIBean.java
@@ -1072,11 +1072,21 @@ public abstract class UIBean extends Component {
this.cssClass = cssClass;
}
+ @StrutsTagAttribute(description="The css class to use for element - it's an alias of cssClass attribute.")
+ public void setClass(String cssClass) {
+ this.cssClass = cssClass;
+ }
+
@StrutsTagAttribute(description="The css style definitions for element to use")
public void setCssStyle(String cssStyle) {
this.cssStyle = cssStyle;
}
+ @StrutsTagAttribute(description="The css style definitions for element to use - it's an alias of cssStyle attribute.")
+ public void setStyle(String cssStyle) {
+ this.cssStyle = cssStyle;
+ }
+
@StrutsTagAttribute(description="The css error class to use for element")
public void setCssErrorClass(String cssErrorClass) {
this.cssErrorClass = cssErrorClass;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/AbstractUITag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/AbstractUITag.java
index 517e5144f..e57932a3b 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/AbstractUITag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/AbstractUITag.java
@@ -141,9 +141,16 @@ public abstract class AbstractUITag extends ComponentTagSupport implements Dynam
this.cssClass = cssClass;
}
+ public void setClass(String cssClass) {
+ this.cssClass = cssClass;
+ }
+
public void setCssStyle(String cssStyle) {
this.cssStyle = cssStyle;
}
+ public void setStyle(String cssStyle) {
+ this.cssStyle = cssStyle;
+ }
public void setCssErrorClass(String cssErrorClass) {
this.cssErrorClass = cssErrorClass;
diff --git a/core/src/site/resources/tags/a.html b/core/src/site/resources/tags/a.html
index f010886e5..f18706ef3 100644
--- a/core/src/site/resources/tags/a.html
+++ b/core/src/site/resources/tags/a.html
@@ -57,6 +57,14 @@ Please do not edit it directly.
String |
The anchor for this URL |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/actionerror.html b/core/src/site/resources/tags/actionerror.html
index 2703e6ef0..4ac203015 100644
--- a/core/src/site/resources/tags/actionerror.html
+++ b/core/src/site/resources/tags/actionerror.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/actionmessage.html b/core/src/site/resources/tags/actionmessage.html
index 21e572591..a3ed1a34e 100644
--- a/core/src/site/resources/tags/actionmessage.html
+++ b/core/src/site/resources/tags/actionmessage.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/checkbox.html b/core/src/site/resources/tags/checkbox.html
index 8fd7fe377..9a60865a9 100644
--- a/core/src/site/resources/tags/checkbox.html
+++ b/core/src/site/resources/tags/checkbox.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/checkboxlist.html b/core/src/site/resources/tags/checkboxlist.html
index 01f3feb37..d502b142f 100644
--- a/core/src/site/resources/tags/checkboxlist.html
+++ b/core/src/site/resources/tags/checkboxlist.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/combobox.html b/core/src/site/resources/tags/combobox.html
index d8b0ce295..93af8ff5e 100644
--- a/core/src/site/resources/tags/combobox.html
+++ b/core/src/site/resources/tags/combobox.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/component.html b/core/src/site/resources/tags/component.html
index 71292e014..3bfbcc399 100644
--- a/core/src/site/resources/tags/component.html
+++ b/core/src/site/resources/tags/component.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/datetextfield.html b/core/src/site/resources/tags/datetextfield.html
index 25c6d22f3..d9a7c5b62 100644
--- a/core/src/site/resources/tags/datetextfield.html
+++ b/core/src/site/resources/tags/datetextfield.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/debug.html b/core/src/site/resources/tags/debug.html
index 0f835525a..c736543ce 100644
--- a/core/src/site/resources/tags/debug.html
+++ b/core/src/site/resources/tags/debug.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/div.html b/core/src/site/resources/tags/div.html
index 43071e02e..3a24a0414 100644
--- a/core/src/site/resources/tags/div.html
+++ b/core/src/site/resources/tags/div.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/doubleselect.html b/core/src/site/resources/tags/doubleselect.html
index 00a155859..54252e2b8 100644
--- a/core/src/site/resources/tags/doubleselect.html
+++ b/core/src/site/resources/tags/doubleselect.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/fielderror.html b/core/src/site/resources/tags/fielderror.html
index f3d35b943..b3b3b34d4 100644
--- a/core/src/site/resources/tags/fielderror.html
+++ b/core/src/site/resources/tags/fielderror.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/file.html b/core/src/site/resources/tags/file.html
index 02a6fadec..dac62c8ea 100644
--- a/core/src/site/resources/tags/file.html
+++ b/core/src/site/resources/tags/file.html
@@ -49,6 +49,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/form.html b/core/src/site/resources/tags/form.html
index bdfabb972..a2929c630 100644
--- a/core/src/site/resources/tags/form.html
+++ b/core/src/site/resources/tags/form.html
@@ -57,6 +57,14 @@ Please do not edit it directly.
String |
Set action name to submit to, without .action suffix |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/head.html b/core/src/site/resources/tags/head.html
index f97ab81fb..f2cc780ab 100644
--- a/core/src/site/resources/tags/head.html
+++ b/core/src/site/resources/tags/head.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/hidden.html b/core/src/site/resources/tags/hidden.html
index ae56a1240..baad9972e 100644
--- a/core/src/site/resources/tags/hidden.html
+++ b/core/src/site/resources/tags/hidden.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/inputtransferselect.html b/core/src/site/resources/tags/inputtransferselect.html
index 4c33f7cb3..1ec69c483 100644
--- a/core/src/site/resources/tags/inputtransferselect.html
+++ b/core/src/site/resources/tags/inputtransferselect.html
@@ -81,6 +81,14 @@ Please do not edit it directly.
String |
the css style used for rendering buttons |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/label.html b/core/src/site/resources/tags/label.html
index f157c54bb..b8578e2fb 100644
--- a/core/src/site/resources/tags/label.html
+++ b/core/src/site/resources/tags/label.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/optiontransferselect.html b/core/src/site/resources/tags/optiontransferselect.html
index 5f9b3c722..f893d5ed7 100644
--- a/core/src/site/resources/tags/optiontransferselect.html
+++ b/core/src/site/resources/tags/optiontransferselect.html
@@ -177,6 +177,14 @@ Please do not edit it directly.
String |
Set button css style |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/password.html b/core/src/site/resources/tags/password.html
index edb1ee94e..2134c5758 100644
--- a/core/src/site/resources/tags/password.html
+++ b/core/src/site/resources/tags/password.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/radio.html b/core/src/site/resources/tags/radio.html
index 1ee168da4..6de4cfff6 100644
--- a/core/src/site/resources/tags/radio.html
+++ b/core/src/site/resources/tags/radio.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/reset.html b/core/src/site/resources/tags/reset.html
index e7d2c5e81..b02daa8c9 100644
--- a/core/src/site/resources/tags/reset.html
+++ b/core/src/site/resources/tags/reset.html
@@ -57,6 +57,14 @@ Please do not edit it directly.
String |
HTML align attribute. |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/select.html b/core/src/site/resources/tags/select.html
index e247c1f3e..f29a91cdf 100644
--- a/core/src/site/resources/tags/select.html
+++ b/core/src/site/resources/tags/select.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/submit.html b/core/src/site/resources/tags/submit.html
index 61da0977f..e3ea38856 100644
--- a/core/src/site/resources/tags/submit.html
+++ b/core/src/site/resources/tags/submit.html
@@ -57,6 +57,14 @@ Please do not edit it directly.
String |
HTML align attribute. |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/textarea.html b/core/src/site/resources/tags/textarea.html
index bfa92ab09..4a28cb549 100644
--- a/core/src/site/resources/tags/textarea.html
+++ b/core/src/site/resources/tags/textarea.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cols |
false |
diff --git a/core/src/site/resources/tags/textfield.html b/core/src/site/resources/tags/textfield.html
index 6766e241b..f0a547acb 100644
--- a/core/src/site/resources/tags/textfield.html
+++ b/core/src/site/resources/tags/textfield.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/token.html b/core/src/site/resources/tags/token.html
index 2980a636e..b95a1596e 100644
--- a/core/src/site/resources/tags/token.html
+++ b/core/src/site/resources/tags/token.html
@@ -41,6 +41,14 @@ Please do not edit it directly.
String |
Set the html accesskey attribute on rendered html element |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |
diff --git a/core/src/site/resources/tags/updownselect.html b/core/src/site/resources/tags/updownselect.html
index d0c02d5ff..378745b6a 100644
--- a/core/src/site/resources/tags/updownselect.html
+++ b/core/src/site/resources/tags/updownselect.html
@@ -65,6 +65,14 @@ Please do not edit it directly.
Boolean |
Whether or not select all button should be displayed |
+
+ | class |
+ false |
+ |
+ false |
+ String |
+ The css class to use for element - it's an alias of cssClass attribute. |
+
| cssClass |
false |