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 e8d86f56c..591f425ac 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); + } + }