You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2016/08/11 23:07:20 UTC

[jira] [Commented] (MYFACES-4059) InputValueHolder not required while defined as such in composite

    [ https://issues.apache.org/jira/browse/MYFACES-4059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15418088#comment-15418088 ] 

Leonardo Uribe commented on MYFACES-4059:
-----------------------------------------

Yes, I tried with a composite, of course. The point is if the is a bug in the spec, it should be possible to create a test case without primefaces, just vainilla jsf components. I was not able to reproduce the bug, so I'm still think this issue should be closed as invalid. Please reopen it again if an only if you can provide an example that can reproduce the problem without primefaces jars.

> 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
>
> In a very simple way, here is a composite:
> {code}
> <ui:component 
>     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"
> >
>     <cc:interface>
>         <cc:attribute name="value" />
>         <cc:attribute name="required" />
>     </cc:interface>
>     <cc:implementation>
>         <p:calendar id="calendar" value="#{cc.attrs.value}" required="#{cc.attrs.required}" showOn="button"/>  
>     </cc:implementation>
> </ui:component>
> {code}
> Here how I use it:
> {code}
> <p:outputLabel for="rat:calendar" value="Hello" />
> <my:calendar id="rat" required="true"/>
> {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)