Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 86CFD200B6F for ; Wed, 10 Aug 2016 00:22:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 857E8160AA5; Tue, 9 Aug 2016 22:22:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CAE0E160AB0 for ; Wed, 10 Aug 2016 00:22:21 +0200 (CEST) Received: (qmail 1016 invoked by uid 500); 9 Aug 2016 22:22:21 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 804 invoked by uid 99); 9 Aug 2016 22:22:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2016 22:22:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7DB1A2C02A7 for ; Tue, 9 Aug 2016 22:22:20 +0000 (UTC) Date: Tue, 9 Aug 2016 22:22:20 +0000 (UTC) From: "Rapster (JIRA)" To: dev@myfaces.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (MYFACES-4059) OutputLabel.for would not evaluate target correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 09 Aug 2016 22:22:22 -0000 [ https://issues.apache.org/jira/browse/MYFACES-4059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15414343#comment-15414343 ] Rapster edited comment on MYFACES-4059 at 8/9/16 10:22 PM: ----------------------------------------------------------- No indeed "for" attribute in h:outputLabel does not have anything to do with "required" validation, but it's just a simple phrase to emphase the real problem. I'm quite surprised regarding what you just said. I debugged more deeply into the code, here is what I see: 1/ HtmlLabelRenderer line 165, once retrieved {{String forAttr = getFor(uiComponent);}}, you don't do much with it. Except of course encode the "for" attribute ;) 2/ Using Eclipse, I evaluate this expression {{((javax.faces.component.html.HtmlInputText)uiComponent.findComponent(forAttr)).isRequired()}} which returns false instead of true. There is definitely something wrong. To recall, I'm using myfaces 2.2.10 was (Author: sebastien.lepage@ymail.com): No indeed "for" attribute in h:outputLabel does not have anything to do with "required" validation, but it's just a simple phrase to emphase the real problem. I'm quite surprised regarding what you just said. I debugged more deeply into the code, here is what I see: 1/ HtmlLabelRenderer line 165, once retrieved {{String forAttr = getFor(uiComponent);}}, you don't do much with it. Except of course encode the "for" attribute ;) 2/ Using Eclipse, I evaluate this expression {{((javax.faces.component.html.HtmlInputText)uiComponent.findComponent(forAttr)).isRequired()}} which returns false instead of true. I'm using myfaces 2.2.10 > OutputLabel.for would not evaluate target correctly > --------------------------------------------------- > > Key: MYFACES-4059 > URL: https://issues.apache.org/jira/browse/MYFACES-4059 > Project: MyFaces Core > Issue Type: Bug > Affects Versions: 2.2.10 > Reporter: Rapster > Assignee: Leonardo Uribe > > In a very simple way, here is a composite: > {code} > xmlns="http://www.w3.org/1999/xhtml" > xmlns:f="http://xmlns.jcp.org/jsf/core" > xmlns:h="http://xmlns.jcp.org/jsf/html" > xmlns:cc="http://xmlns.jcp.org/jsf/composite" > xmlns:ui="http://xmlns.jcp.org/jsf/facelets" > xmlns:c="http://xmlns.jcp.org/jsp/jstl/core" > xmlns:fn="http://xmlns.jcp.org/jsp/jstl/functions" > xmlns:p="http://primefaces.org/ui" > > > > > > > > > > > {code} > Here how I use it: > {code} > > > {code} > A required=true icon should be displayed but it does not. input.isRequired() returns false while I explicitly set true.Looks like a JSF problem (I'm using Mojarra 2.2.13 and reproduced on Myfaces 2.2.10 as well) -- This message was sent by Atlassian JIRA (v6.3.4#6332)