[ https://issues.apache.org/jira/browse/MYFACES-4310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16979321#comment-16979321 ]
Steven De Groote commented on MYFACES-4310: ------------------------------------------- Ah nevermind! Not sure why it ever worked in my project, but with all JSF impls with the primefaces-test project, it fails, due to a library reference missing in my "javax.faces.FACELETS_LIBRARIES" property. > 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 > Priority: Major > > _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) > {code:java} > <!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="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>{code} > My outputTextWithLabel components looks like this: > {code:java} > <my:outputTextWithLabel id="creationdate" label="#{msg.common_datecreated}" > value="#{bean.date}"> > <f:convertNumber/> > </my:outputTextWithLabel> {code} > 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)