Passing a converter to a composite component
<p>After some experimenting and reading up, I found the same solution as <a href="https://stackoverflow.com/questions/38919946/how-to-reference-component-inside-a-composite-component-when-using-a-converter">How to reference component inside a composite component when using a converter</a></p>

<p>The problem however is that I have two IDs for the valueholder and according to the documentation I could use id1,id2 as targets but that doesn't work.</p>

<p>This is my composite component:</p>

<pre><code>&lt;cc:interface&gt;
    &lt;cc:attribute name="id" required="true"/&gt;
    &lt;cc:attribute name="value" required="true"/&gt;
    &lt;cc:attribute name="editable" required="true"/&gt;
    &lt;cc:editableValueHolder name="element" targets="input,output"/&gt;
&lt;/cc:interface&gt;
&lt;cc:implementation&gt;
    &lt;h:inputText value="#{cc.attrs.value}" id="input" rendered="#{cc.attrs.editable}"/&gt;
    &lt;h:outputText value="#{cc.attrs.value}" id="output" rendered="#{not cc.attrs.editable}"/&gt;
&lt;/cc:implementation&gt;
</code></pre>

<p>And this is how I intend to use the CC:</p>

<pre><code>&lt;r:inputText editable="#{registrationBean.editable}" id="dateOfBirth"
             value="#{registrationBean.dateOfBirth}"&gt;
    &lt;f:convertDateTime pattern="dd-MM-yyyy" type="date" for="element" /&gt;
&lt;/r:inputText&gt;
</code></pre>

<p>I originally tried inserting the converter via insertChildren and via a facet but none worked.</p>