You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2017/11/24 09:49:03 UTC
[myfaces-tobago] branch master updated: fix segmentLeft
segmentRight * fix a bug where the ID-suffix '::label' is set on the
component instead of the label
This is an automated email from the ASF dual-hosted git repository.
hnoeth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/master by this push:
new a589627 fix segmentLeft segmentRight * fix a bug where the ID-suffix '::label' is set on the component instead of the label
a589627 is described below
commit a58962733b12b744465b72a99ab287f2c5bce934
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Fri Nov 24 10:48:58 2017 +0100
fix segmentLeft segmentRight
* fix a bug where the ID-suffix '::label' is set on the component instead of the label
---
.../tobago/internal/renderkit/renderer/LabelLayoutRendererBase.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/LabelLayoutRendererBase.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/LabelLayoutRendererBase.java
index 25beb01..43dbdc4 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/LabelLayoutRendererBase.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/LabelLayoutRendererBase.java
@@ -149,13 +149,13 @@ public abstract class LabelLayoutRendererBase extends DecodingInputRendererBase
flex = true;
break;
case segmentLeft:
- if (LabelLayout.getSegment(facesContext) == LabelLayout.segmentRight) {
+ if (LabelLayout.getSegment(facesContext) == LabelLayout.segmentLeft) {
clientId += ComponentUtils.SUB_SEPARATOR + "label";
}
flex = false;
break;
case segmentRight:
- if (LabelLayout.getSegment(facesContext) == LabelLayout.segmentLeft) {
+ if (LabelLayout.getSegment(facesContext) == LabelLayout.segmentRight) {
clientId += ComponentUtils.SUB_SEPARATOR + "label";
}
flex = false;
--
To stop receiving notification emails like this one, please contact
['"commits@myfaces.apache.org" <co...@myfaces.apache.org>'].