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 5455960d5..dc7213f36 100644 --- a/core/src/main/java/org/apache/struts2/components/UIBean.java +++ b/core/src/main/java/org/apache/struts2/components/UIBean.java @@ -1072,12 +1072,6 @@ public abstract class UIBean extends Component { this.cssClass = cssClass; } - @Deprecated - @StrutsTagAttribute(description="(Deprecated) 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; diff --git a/core/src/site/resources/tags/a-attributes.html b/core/src/site/resources/tags/a-attributes.html index dc26f4acb..72438ce31 100644 --- a/core/src/site/resources/tags/a-attributes.html +++ b/core/src/site/resources/tags/a-attributes.html @@ -37,14 +37,6 @@ String The anchor for this URL - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/actionerror-attributes.html index 4bde23efb..c41df2a2f 100644 --- a/core/src/site/resources/tags/actionerror-attributes.html +++ b/core/src/site/resources/tags/actionerror-attributes.html @@ -21,14 +21,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/actionmessage-attributes.html index 1b8e70654..912f2d356 100644 --- a/core/src/site/resources/tags/actionmessage-attributes.html +++ b/core/src/site/resources/tags/actionmessage-attributes.html @@ -21,14 +21,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/checkbox-attributes.html index ca70c0528..9adef64bf 100644 --- a/core/src/site/resources/tags/checkbox-attributes.html +++ b/core/src/site/resources/tags/checkbox-attributes.html @@ -21,14 +21,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/checkboxlist-attributes.html index 00eb35f80..67f2e00a2 100644 --- a/core/src/site/resources/tags/checkboxlist-attributes.html +++ b/core/src/site/resources/tags/checkboxlist-attributes.html @@ -21,14 +21,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/combobox-attributes.html index d81412d76..8564aa425 100644 --- a/core/src/site/resources/tags/combobox-attributes.html +++ b/core/src/site/resources/tags/combobox-attributes.html @@ -21,14 +21,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/component-attributes.html index b1c5caf56..688605600 100644 --- a/core/src/site/resources/tags/component-attributes.html +++ b/core/src/site/resources/tags/component-attributes.html @@ -21,14 +21,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/datetextfield-attributes.html index 0e9d618f5..55c91a102 100644 --- a/core/src/site/resources/tags/datetextfield-attributes.html +++ b/core/src/site/resources/tags/datetextfield-attributes.html @@ -21,14 +21,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/debug-attributes.html index b1c5caf56..688605600 100644 --- a/core/src/site/resources/tags/debug-attributes.html +++ b/core/src/site/resources/tags/debug-attributes.html @@ -21,14 +21,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/doubleselect-attributes.html index 7ddbe2f0e..bfed3ef18 100644 --- a/core/src/site/resources/tags/doubleselect-attributes.html +++ b/core/src/site/resources/tags/doubleselect-attributes.html @@ -21,14 +21,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/fielderror-attributes.html index 7f0b4fae2..8d195a3f8 100644 --- a/core/src/site/resources/tags/fielderror-attributes.html +++ b/core/src/site/resources/tags/fielderror-attributes.html @@ -21,14 +21,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/file-attributes.html index 66a193d1b..e09df9edd 100644 --- a/core/src/site/resources/tags/file-attributes.html +++ b/core/src/site/resources/tags/file-attributes.html @@ -29,14 +29,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/form-attributes.html index 73734a1c6..aa9f3b457 100644 --- a/core/src/site/resources/tags/form-attributes.html +++ b/core/src/site/resources/tags/form-attributes.html @@ -37,14 +37,6 @@ String Set action name to submit to, without .action suffix - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/head-attributes.html index e69d09195..0bd502db2 100644 --- a/core/src/site/resources/tags/head-attributes.html +++ b/core/src/site/resources/tags/head-attributes.html @@ -21,14 +21,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/hidden-attributes.html index e69d09195..0bd502db2 100644 --- a/core/src/site/resources/tags/hidden-attributes.html +++ b/core/src/site/resources/tags/hidden-attributes.html @@ -21,14 +21,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/inputtransferselect-attributes.html index d2f68a88d..152fa4705 100644 --- a/core/src/site/resources/tags/inputtransferselect-attributes.html +++ b/core/src/site/resources/tags/inputtransferselect-attributes.html @@ -61,14 +61,6 @@ String the css style used for rendering buttons - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/label-attributes.html index b118c807b..f6ff316c1 100644 --- a/core/src/site/resources/tags/label-attributes.html +++ b/core/src/site/resources/tags/label-attributes.html @@ -21,14 +21,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) The css class to use for element - it's an alias of cssClass attribute. - cssClass false diff --git a/core/src/site/resources/tags/link-attributes.html b/core/src/site/resources/tags/link-attributes.html index f340117f4..ed5234633 100644 --- a/core/src/site/resources/tags/link-attributes.html +++ b/core/src/site/resources/tags/link-attributes.html @@ -29,14 +29,6 @@ String HTML link as attribute - - class - false - - false - String - (Deprecated) The css class to use for element - it's an alias of cssClass attribute. - crossorigin false diff --git a/core/src/site/resources/tags/optiontransferselect-attributes.html b/core/src/site/resources/tags/optiontransferselect-attributes.html index 78f12211e..914628304 100644 --- a/core/src/site/resources/tags/optiontransferselect-attributes.html +++ b/core/src/site/resources/tags/optiontransferselect-attributes.html @@ -157,14 +157,6 @@ String Set button css style - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/password-attributes.html index c3fb4ce77..35983e67c 100644 --- a/core/src/site/resources/tags/password-attributes.html +++ b/core/src/site/resources/tags/password-attributes.html @@ -21,14 +21,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/radio-attributes.html index 00eb35f80..67f2e00a2 100644 --- a/core/src/site/resources/tags/radio-attributes.html +++ b/core/src/site/resources/tags/radio-attributes.html @@ -21,14 +21,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/reset-attributes.html index b2b742a08..42b3bb8dd 100644 --- a/core/src/site/resources/tags/reset-attributes.html +++ b/core/src/site/resources/tags/reset-attributes.html @@ -29,14 +29,6 @@ String Set action attribute. - - class - false - - false - String - (Deprecated) The css class to use for element - it's an alias of cssClass attribute. - cssClass false diff --git a/core/src/site/resources/tags/script-attributes.html b/core/src/site/resources/tags/script-attributes.html index aa9d22ba9..b9105f8c2 100644 --- a/core/src/site/resources/tags/script-attributes.html +++ b/core/src/site/resources/tags/script-attributes.html @@ -37,14 +37,6 @@ String HTML script charset attribute - - class - false - - false - String - (Deprecated) The css class to use for element - it's an alias of cssClass attribute. - crossorigin false diff --git a/core/src/site/resources/tags/select-attributes.html b/core/src/site/resources/tags/select-attributes.html index b25f92ffc..e5d1c6f95 100644 --- a/core/src/site/resources/tags/select-attributes.html +++ b/core/src/site/resources/tags/select-attributes.html @@ -21,14 +21,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/submit-attributes.html index 0d6ef2a8f..f5f235335 100644 --- a/core/src/site/resources/tags/submit-attributes.html +++ b/core/src/site/resources/tags/submit-attributes.html @@ -29,14 +29,6 @@ String Set action attribute. - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/textarea-attributes.html index 3b75f3045..f3e207942 100644 --- a/core/src/site/resources/tags/textarea-attributes.html +++ b/core/src/site/resources/tags/textarea-attributes.html @@ -21,14 +21,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/textfield-attributes.html index 72fe987f4..a186ece2e 100644 --- a/core/src/site/resources/tags/textfield-attributes.html +++ b/core/src/site/resources/tags/textfield-attributes.html @@ -21,14 +21,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/token-attributes.html index b1c5caf56..688605600 100644 --- a/core/src/site/resources/tags/token-attributes.html +++ b/core/src/site/resources/tags/token-attributes.html @@ -21,14 +21,6 @@ String Set the html accesskey attribute on rendered html element - - class - false - - false - String - (Deprecated) 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-attributes.html b/core/src/site/resources/tags/updownselect-attributes.html index b827b514e..a1f873564 100644 --- a/core/src/site/resources/tags/updownselect-attributes.html +++ b/core/src/site/resources/tags/updownselect-attributes.html @@ -45,14 +45,6 @@ Boolean Whether or not select all button should be displayed - - class - false - - false - String - (Deprecated) The css class to use for element - it's an alias of cssClass attribute. - cssClass false diff --git a/core/src/test/java/org/apache/struts2/components/UIBeanTest.java b/core/src/test/java/org/apache/struts2/components/UIBeanTest.java index 90575f341..b1f2bcc10 100644 --- a/core/src/test/java/org/apache/struts2/components/UIBeanTest.java +++ b/core/src/test/java/org/apache/struts2/components/UIBeanTest.java @@ -196,7 +196,7 @@ public class UIBeanTest extends StrutsInternalTestCase { MockHttpServletResponse res = new MockHttpServletResponse(); TextField txtFld = new TextField(stack, req, res); - + Template defaultTemplate = txtFld.buildTemplateName(null, defaultTemplateName); Template customTemplate = txtFld.buildTemplateName(customTemplateName, defaultTemplateName); @@ -360,7 +360,7 @@ public class UIBeanTest extends StrutsInternalTestCase { MockHttpServletResponse res = new MockHttpServletResponse(); TextField txtFld = new TextField(stack, req, res); - txtFld.setClass(cssClass); + txtFld.setCssClass(cssClass); txtFld.evaluateParams(); assertEquals(cssClass, txtFld.getParameters().get("cssClass"));