title: Create composite component for f:metadata
body: <p>I want to create a composite component which adds some common meta data to views, like:</p>
  
  <pre><code>&lt;viewController:metadata controller="orderController"/&gt;
  </code></pre>
  
  <p>the component:</p>
  
  <pre><code>&lt;composite:interface&gt;
    &lt;composite:attribute name="controller" /&gt;
  &lt;/composite:interface&gt;
  
  &lt;composite:implementation&gt;
  
    &lt;f:metadata&gt;
      &lt;f:viewParam name="id" value="#{cc.attrs.controller.id}" /&gt;
      &lt;f:event type="preRenderView"
        listener="#{cc.attrs.controller.initConversation}" /&gt;
    &lt;/f:metadata&gt;
  
  &lt;/composite:implementation&gt;
  </code></pre>
  
  <p>i do similar things to add a button bar to all views and it works fine, but it seems its not possible with f:metadata. </p>
  
  <p>Am i right or is there something wrong with my code?</p>
  
  <p>thanks</p>