Steven De Groote created MYFACES-4310:
-----------------------------------------

             Summary: ui:insert into template components finds incorrect parent 
ValueHolder
                 Key: MYFACES-4310
                 URL: https://issues.apache.org/jira/browse/MYFACES-4310
             Project: MyFaces Core
          Issue Type: Bug
         Environment: WebSphere Application Server 
19.0.0.11/wlp-1.0.34.cl191120191031-0300) on Java HotSpot(TM) 64-Bit Server VM, 
version 1.8.0_212-b10 (en_US)
            Reporter: Steven De Groote


_Note: This works fine in Wildfly18 using Mojarra 2.3_

It appears like MyFaces is looking for the wrong parent component, or rather, 
ignores the components specified in a template component.

Parent not composite component or an instance of ValueHolder: 
org.primefaces.component.fieldset.Fieldset@6559fbd6

It seemingly then checks a Fieldset (which is a parent of a parent in my case)
 <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"; 
xmlns:ui="http://java.sun.com/jsf/facelets";
    xmlns:f="http://java.sun.com/jsf/core"; 
xmlns:h="http://java.sun.com/jsf/html"; xmlns:p="http://primefaces.org/ui"; 
xmlns:jsf="http://xmlns.jcp.org/jsf";>
    <ui:composition>
        <h:panelGroup rendered="#\{rendered or empty rendered}">
            <p:outputLabel for="#\{id}" value="#\{label}" />
            <div class="ui-inputfield ui-inputtext ui-widget ui-state-default 
ui-corner-all">
                <h:outputText id="#\{id}" value="#\{value}">
                    <ui:insert/>
                </h:outputText>
            </div>
        </h:panelGroup>
    </ui:composition>
</html>
{{}}My outputTextWithLabel components looks like this:
<my:outputTextWithLabel id="creationdate" label="#\{msg.common_datecreated}" 
value="#\{bean.date}">
    <f:convertNumber/>
</my:outputTextWithLabel> 
{{}}

I've already registered the problem at 
https://stackoverflow.com/questions/58954647/unable-to-insert-a-converter-into-a-facelets-template-component



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to