struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [struts] 01/01: WW-5136 Makes class attribute deprecated
Date Sun, 27 Jun 2021 07:48:55 GMT
This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch WW-5136-class-deprecated
in repository https://gitbox.apache.org/repos/asf/struts.git

commit fe455117129ff04d868e15fac5263be5e7720e17
Author: Lukasz Lenart <lukaszlenart@apache.org>
AuthorDate: Sun Jun 27 09:48:43 2021 +0200

    WW-5136 Makes class attribute deprecated
---
 core/src/main/java/org/apache/struts2/components/UIBean.java          | 3 ++-
 core/src/main/java/org/apache/struts2/views/jsp/ui/AbstractUITag.java | 4 ++++
 core/src/site/resources/tags/a.html                                   | 2 +-
 core/src/site/resources/tags/actionerror.html                         | 2 +-
 core/src/site/resources/tags/actionmessage.html                       | 2 +-
 core/src/site/resources/tags/checkbox.html                            | 2 +-
 core/src/site/resources/tags/checkboxlist.html                        | 2 +-
 core/src/site/resources/tags/combobox.html                            | 2 +-
 core/src/site/resources/tags/component.html                           | 2 +-
 core/src/site/resources/tags/datetextfield.html                       | 2 +-
 core/src/site/resources/tags/debug.html                               | 2 +-
 core/src/site/resources/tags/doubleselect.html                        | 2 +-
 core/src/site/resources/tags/fielderror.html                          | 2 +-
 core/src/site/resources/tags/file.html                                | 2 +-
 core/src/site/resources/tags/form.html                                | 2 +-
 core/src/site/resources/tags/head.html                                | 2 +-
 core/src/site/resources/tags/hidden.html                              | 2 +-
 core/src/site/resources/tags/inputtransferselect.html                 | 2 +-
 core/src/site/resources/tags/label.html                               | 2 +-
 core/src/site/resources/tags/optiontransferselect.html                | 2 +-
 core/src/site/resources/tags/password.html                            | 2 +-
 core/src/site/resources/tags/radio.html                               | 2 +-
 core/src/site/resources/tags/reset.html                               | 2 +-
 core/src/site/resources/tags/select.html                              | 2 +-
 core/src/site/resources/tags/submit.html                              | 2 +-
 core/src/site/resources/tags/textarea.html                            | 2 +-
 core/src/site/resources/tags/textfield.html                           | 2 +-
 core/src/site/resources/tags/token.html                               | 2 +-
 core/src/site/resources/tags/updownselect.html                        | 2 +-
 29 files changed, 33 insertions(+), 28 deletions(-)

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 060d48b..21ae1d5 100644
--- a/core/src/main/java/org/apache/struts2/components/UIBean.java
+++ b/core/src/main/java/org/apache/struts2/components/UIBean.java
@@ -1053,7 +1053,8 @@ 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.")
+    @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;
     }
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 5c7a835..6c43238 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
@@ -135,6 +135,10 @@ public abstract class AbstractUITag extends ComponentTagSupport implements
Dynam
         this.cssClass = cssClass;
     }
 
+    /**
+     * @deprecated Use {@link #setCssClass(String)} instead
+     */
+    @Deprecated
     public void setClass(String cssClass) {
         this.cssClass = cssClass;
     }
diff --git a/core/src/site/resources/tags/a.html b/core/src/site/resources/tags/a.html
index 2001968..48a63c9 100644
--- a/core/src/site/resources/tags/a.html
+++ b/core/src/site/resources/tags/a.html
@@ -63,7 +63,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/actionerror.html b/core/src/site/resources/tags/actionerror.html
index 6bb733d..1f5fb2c 100644
--- a/core/src/site/resources/tags/actionerror.html
+++ b/core/src/site/resources/tags/actionerror.html
@@ -47,7 +47,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/actionmessage.html b/core/src/site/resources/tags/actionmessage.html
index e22de1e..7c07710 100644
--- a/core/src/site/resources/tags/actionmessage.html
+++ b/core/src/site/resources/tags/actionmessage.html
@@ -47,7 +47,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/checkbox.html b/core/src/site/resources/tags/checkbox.html
index f40559c..c379e4c 100644
--- a/core/src/site/resources/tags/checkbox.html
+++ b/core/src/site/resources/tags/checkbox.html
@@ -47,7 +47,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/checkboxlist.html b/core/src/site/resources/tags/checkboxlist.html
index 39ce917..8f0c2f4 100644
--- a/core/src/site/resources/tags/checkboxlist.html
+++ b/core/src/site/resources/tags/checkboxlist.html
@@ -47,7 +47,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/combobox.html b/core/src/site/resources/tags/combobox.html
index 6051105..9901d90 100644
--- a/core/src/site/resources/tags/combobox.html
+++ b/core/src/site/resources/tags/combobox.html
@@ -47,7 +47,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/component.html b/core/src/site/resources/tags/component.html
index 0ad47e7..3eb8ae6 100644
--- a/core/src/site/resources/tags/component.html
+++ b/core/src/site/resources/tags/component.html
@@ -47,7 +47,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/datetextfield.html b/core/src/site/resources/tags/datetextfield.html
index 030987d..d7bddb2 100644
--- a/core/src/site/resources/tags/datetextfield.html
+++ b/core/src/site/resources/tags/datetextfield.html
@@ -47,7 +47,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/debug.html b/core/src/site/resources/tags/debug.html
index f274227..821a036 100644
--- a/core/src/site/resources/tags/debug.html
+++ b/core/src/site/resources/tags/debug.html
@@ -47,7 +47,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/doubleselect.html b/core/src/site/resources/tags/doubleselect.html
index 82ce362..3cae8eb 100644
--- a/core/src/site/resources/tags/doubleselect.html
+++ b/core/src/site/resources/tags/doubleselect.html
@@ -47,7 +47,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/fielderror.html b/core/src/site/resources/tags/fielderror.html
index 4ad39e6..5d9140f 100644
--- a/core/src/site/resources/tags/fielderror.html
+++ b/core/src/site/resources/tags/fielderror.html
@@ -47,7 +47,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/file.html b/core/src/site/resources/tags/file.html
index c9aaa34..3e7c67e 100644
--- a/core/src/site/resources/tags/file.html
+++ b/core/src/site/resources/tags/file.html
@@ -55,7 +55,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/form.html b/core/src/site/resources/tags/form.html
index 268b705..d416676 100644
--- a/core/src/site/resources/tags/form.html
+++ b/core/src/site/resources/tags/form.html
@@ -63,7 +63,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/head.html b/core/src/site/resources/tags/head.html
index aefe87b..f59edb6 100644
--- a/core/src/site/resources/tags/head.html
+++ b/core/src/site/resources/tags/head.html
@@ -47,7 +47,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/hidden.html b/core/src/site/resources/tags/hidden.html
index b0d766f..97fdba1 100644
--- a/core/src/site/resources/tags/hidden.html
+++ b/core/src/site/resources/tags/hidden.html
@@ -47,7 +47,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/inputtransferselect.html b/core/src/site/resources/tags/inputtransferselect.html
index 6879c95..a4c8481 100644
--- a/core/src/site/resources/tags/inputtransferselect.html
+++ b/core/src/site/resources/tags/inputtransferselect.html
@@ -87,7 +87,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/label.html b/core/src/site/resources/tags/label.html
index 07c1f11..4ea504f 100644
--- a/core/src/site/resources/tags/label.html
+++ b/core/src/site/resources/tags/label.html
@@ -47,7 +47,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/optiontransferselect.html b/core/src/site/resources/tags/optiontransferselect.html
index 37ae0da..66ea9ef 100644
--- a/core/src/site/resources/tags/optiontransferselect.html
+++ b/core/src/site/resources/tags/optiontransferselect.html
@@ -183,7 +183,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/password.html b/core/src/site/resources/tags/password.html
index a712b62..f9087e0 100644
--- a/core/src/site/resources/tags/password.html
+++ b/core/src/site/resources/tags/password.html
@@ -47,7 +47,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/radio.html b/core/src/site/resources/tags/radio.html
index 98686ae..384755f 100644
--- a/core/src/site/resources/tags/radio.html
+++ b/core/src/site/resources/tags/radio.html
@@ -47,7 +47,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/reset.html b/core/src/site/resources/tags/reset.html
index cb5c5f8..4992dbf 100644
--- a/core/src/site/resources/tags/reset.html
+++ b/core/src/site/resources/tags/reset.html
@@ -55,7 +55,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/select.html b/core/src/site/resources/tags/select.html
index da5056a..dcb13b5 100644
--- a/core/src/site/resources/tags/select.html
+++ b/core/src/site/resources/tags/select.html
@@ -47,7 +47,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/submit.html b/core/src/site/resources/tags/submit.html
index 12b2435..afc871e 100644
--- a/core/src/site/resources/tags/submit.html
+++ b/core/src/site/resources/tags/submit.html
@@ -55,7 +55,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/textarea.html b/core/src/site/resources/tags/textarea.html
index bbbeabf..10f2289 100644
--- a/core/src/site/resources/tags/textarea.html
+++ b/core/src/site/resources/tags/textarea.html
@@ -47,7 +47,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cols</td>
diff --git a/core/src/site/resources/tags/textfield.html b/core/src/site/resources/tags/textfield.html
index 0f9666c..1f18770 100644
--- a/core/src/site/resources/tags/textfield.html
+++ b/core/src/site/resources/tags/textfield.html
@@ -47,7 +47,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/token.html b/core/src/site/resources/tags/token.html
index 3b572f8..ab3e68a 100644
--- a/core/src/site/resources/tags/token.html
+++ b/core/src/site/resources/tags/token.html
@@ -47,7 +47,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>
diff --git a/core/src/site/resources/tags/updownselect.html b/core/src/site/resources/tags/updownselect.html
index 16b37af..714875b 100644
--- a/core/src/site/resources/tags/updownselect.html
+++ b/core/src/site/resources/tags/updownselect.html
@@ -71,7 +71,7 @@ Please do not edit it directly.
 					<td align="left" valign="top"></td>
 					<td align="left" valign="top">false</td>
 					<td align="left" valign="top">String</td>
-					<td align="left" valign="top">The css class to use for element - it's an alias
of cssClass attribute.</td>
+					<td align="left" valign="top">(Deprecated) The css class to use for element -
it's an alias of cssClass attribute.</td>
 				</tr>
 				<tr>
 					<td align="left" valign="top">cssClass</td>

Mime
View raw message