You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Thomas Andraschko (Jira)" <de...@myfaces.apache.org> on 2019/11/20 15:11:00 UTC

[jira] [Commented] (MYFACES-4310) ui:insert into template components finds incorrect parent ValueHolder

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

Thomas Andraschko commented on MYFACES-4310:
--------------------------------------------

Could you please fork the primefaces-test project and make your case fail there?
We can simple run it with mojarra and myfaces then. Otherwise it's not easy to reproduce it for me.

> 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)