WW-5123 Adds right option to TLD for Checkbox tag
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 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);
+ }
+
}