From commits-return-19758-archive-asf-public=cust-asf.ponee.io@struts.apache.org Sun Jun 27 07:30:44 2021 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-he-de.apache.org (mxout1-he-de.apache.org [95.216.194.37]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id 69A23180663 for ; Sun, 27 Jun 2021 09:30:44 +0200 (CEST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-he-de.apache.org (ASF Mail Server at mxout1-he-de.apache.org) with SMTP id E2F57607C6 for ; Sun, 27 Jun 2021 07:30:28 +0000 (UTC) Received: (qmail 79247 invoked by uid 500); 27 Jun 2021 07:30:27 -0000 Mailing-List: contact commits-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list commits@struts.apache.org Received: (qmail 79181 invoked by uid 99); 27 Jun 2021 07:30:26 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Jun 2021 07:30:26 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 4AAEC8B758; Sun, 27 Jun 2021 07:30:26 +0000 (UTC) Date: Sun, 27 Jun 2021 07:30:28 +0000 To: "commits@struts.apache.org" Subject: [struts] 02/05: WW-5123 Adds right option to TLD for Checkbox tag MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: lukaszlenart@apache.org In-Reply-To: <162477902600.14133.13321776914767640749@gitbox.apache.org> References: <162477902600.14133.13321776914767640749@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: struts X-Git-Refname: refs/heads/WW-5123-labelposition X-Git-Reftype: branch X-Git-Rev: 97aa68bcf5b2cdcf5ba7a147ef326af4c1277bb4 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20210627073026.4AAEC8B758@gitbox.apache.org> 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 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); + } + }