I've been trying to create a composite component that outputs a facet.
header.xhtml
<composite:interface>
<composite:attribute name="headerLabel"/>
</composite:interface>
<composite:implementation>
<f:facet name="header">
#{cc.attrs.headerLabel}
</f:facet>
</composite:implementation>
I want to be able to do something of the sort:
<p:datatable>
<app:header headerLabel="This is a test"/>
</p:datatable>
But nothing gets rendered. Is there a way to accomplish this? Thanks!