struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [struts] 02/05: WW-5123 Adds right option to TLD for Checkbox tag
Date Sun, 27 Jun 2021 07:30:28 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit 97aa68bcf5b2cdcf5ba7a147ef326af4c1277bb4
Author: Lukasz Lenart <lukaszlenart@apache.org>
AuthorDate: Mon Jun 14 20:28:24 2021 +0200

    WW-5123 Adds right option to TLD for Checkbox tag
---
 .../java/org/apache/struts2/components/Checkbox.java   | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/core/src/main/java/org/apache/struts2/components/Checkbox.java b/core/src/main/java/org/apache/struts2/components/Checkbox.java
index e8d86f5..591f425 100644
--- a/core/src/main/java/org/apache/struts2/components/Checkbox.java
+++ b/core/src/main/java/org/apache/struts2/components/Checkbox.java
@@ -94,4 +94,22 @@ public class Checkbox extends UIBean {
     public void setSubmitUnchecked(String submitUnchecked) {
         this.submitUnchecked = submitUnchecked;
     }
+
+    /**
+     * Deprecated since 2.5.27
+     * @deprecated use {@link #setLabelPosition(String)} instead
+     */
+    @Deprecated
+    @Override
+    @StrutsTagAttribute(description="(Deprecated) Define label position of form element (top/left),
also 'right' is supported when using 'xhtml' theme")
+    public void setLabelposition(String labelPosition) {
+        super.setLabelPosition(labelPosition);
+    }
+
+    @Override
+    @StrutsTagAttribute(description="Define label position of form element (top/left), also
'right' is supported when using 'xhtml' theme")
+    public void setLabelPosition(String labelPosition) {
+        super.setLabelPosition(labelPosition);
+    }
+
 }

Mime
View raw message