[
https://issues.apache.org/jira/browse/MYFACES-4161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16196121#comment-16196121
]
Christian Beikov edited comment on MYFACES-4161 at 10/8/17 2:12 PM:
--------------------------------------------------------------------
Note that using the tag handler implementation suggested by this SO answer
helps: https://stackoverflow.com/a/9091313
The next issue I'm having now is that an EL expression that uses a composite
component attribute within the facet, will result in *NULL*. So using the
composite component with the facet in another composite component like this.
{code:xml}
<composite:interface>
<composite:facet name="someAttr" />
</composite:interface>
<composite:implementation>
<my:component>
<f:facet name="before">
<h:inputText value="#{cc.attrs.someAttr}" .../>
</f:facet>
</my:component>
</composite:implementation>
{code}
was (Author: christian.beikov):
Note that using the tag handler implementation suggested by this SO answer
helps:
https://stackoverflow.com/questions/7891650/using-compositeinsertfacet-renderfacet-does-not-work-inside-tdatatable
The next issue I'm having now is that an EL expression that uses a composite
component attribute within the facet, will result in *NULL*. So using the
composite component with the facet in another composite component like this.
{code:xml}
<composite:interface>
<composite:facet name="someAttr" />
</composite:interface>
<composite:implementation>
<my:component>
<f:facet name="before">
<h:inputText value="#{cc.attrs.someAttr}" .../>
</f:facet>
</my:component>
</composite:implementation>
{code}
> Component in facet not relocated in composite component
> -------------------------------------------------------
>
> Key: MYFACES-4161
> URL: https://issues.apache.org/jira/browse/MYFACES-4161
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 2.2.10
> Reporter: Christian Beikov
>
> I have a composite component that accepts a facet. The composite component
> defines a form within which the facet is rendered. It roughly looks like this
> {code:xml}
> <composite:interface>
> <composite:facet name="before" />
> </composite:interface>
> <composite:implementation>
> <h:form>
> ...
> <composite:renderFacet name="before"/>
> ...
> </h:form>
> </composite:implementation>
> {code}
> Now when I use an input component in the facet, it doesn't get relocated into
> the appropriate naming container.
> {code:xml}
> <my:component>
> <f:facet name="before">
> <h:inputText .../>
> </f:facet>
> </my:component>
> {code}
> The client id of the input element does not contain the form id and is thus
> not being considered during form processing.
> Can you confirm this is a bug?
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)