title: JSF composite:insertFacet and composite:renderFacet
body: <p>I want to have a composite component with a facet in it, which I implement in my "implementation" of this composite component. My problem are ids, because when I only define  in my composite component and then with  put my implementation in it, it only renders it but the component is in another place.
  Here is a sample code:</p>
  
  <p><code>myComposition.xhtml</code></p>
  
  <pre><code>&lt;composite:implementation&gt;
   &lt;composite:renderFacet name="myFacet"&gt;
  &lt;/composite:implementation&gt;
  </code></pre>
  
  <p><code>myCompositionImpl.xhtml</code></p>
  
  <pre><code>&lt;mySomething:myComposition&gt;
   &lt;f:facet name="myFacet"&gt;
    this code is rendered but the "component" which I define here is not placed 
    logically in the place where I defined the "renderFacet". 
   &lt;/f:facet&gt;
  &lt;/mySomething:myComposition&gt;
  </code></pre>
  
  <p>What can I do about this? With composite:insertFacet it doesn't render anything. I need to have the component also there because I need to know the client id of it.</p>