You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2021/06/27 07:30:28 UTC
[struts] 02/05: WW-5123 Adds right option to TLD for Checkbox tag
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 <lu...@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);
+ }
+
}