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 66953200B60 for ; Sun, 14 Aug 2016 16:39:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 654A3160AA9; Sun, 14 Aug 2016 14:39: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 AC00E160A8B for ; Sun, 14 Aug 2016 16:39:21 +0200 (CEST) Received: (qmail 68111 invoked by uid 500); 14 Aug 2016 14:39:20 -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 68097 invoked by uid 99); 14 Aug 2016 14:39:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Aug 2016 14:39:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6FEDC2C02A1 for ; Sun, 14 Aug 2016 14:39:20 +0000 (UTC) Date: Sun, 14 Aug 2016 14:39:20 +0000 (UTC) From: "Rapster (JIRA)" To: dev@myfaces.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MYFACES-4059) InputValueHolder not required while defined as such in composite MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 14 Aug 2016 14:39:22 -0000 [ https://issues.apache.org/jira/browse/MYFACES-4059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15420351#comment-15420351 ] Rapster commented on MYFACES-4059: ---------------------------------- You'll find attached a sample that reproduce the problem. First, try to evaluate {{((javax.faces.component.html.HtmlInputText)uiComponent.findComponent(forAttr)).isRequired()}} right after getting "for" value, it will return false. There is a bug under the hood we don't see at JSF Impl level, but if you use a component like {{p:outputLabel}} you'll see it _(the mandatory icon won't show up)_. Something weird though, I make the required value displayed and it's "true". > InputValueHolder not required while defined as such in composite > ---------------------------------------------------------------- > > 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 > Attachments: jsf-bug-required-composite.7z > > > 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. In OutputLabelRenderer looks fine, except in line 118, input.isRequired() returns false while I explicitly set true. It is not related to Primefaces but looks like a JSF impl problem (I'm using Myfaces 2.2.10) -- This message was sent by Atlassian JIRA (v6.3.4#6332)