title: JSF 2.0: Passing composite component attribute to inner composite component
body: <p>I have the following case:</p>
  
  <pre><code>&lt;cc:interface&gt;
      &lt;cc:attribute name="someValue" /&gt;
  &lt;/cc:interface&gt;
  
  &lt;cc:composite&gt;
      &lt;x:someComponent&gt;
          &lt;span&gt;#{cc.attrs.someValue}&lt;/span&gt;
      &lt;/x:someComponent&gt;
  &lt;/cc:composite&gt;
  </code></pre>
  
  <p>So inside my composite component I am calling some other composite component and trying to pass the parameter given to the "master" composite component to the inner composite component.</p>
  
  <p>This fails, because inside <code>x:someComponent</code> tags the <code>cc</code> implicit object seems to refer to this <code>x:someComponent</code> instead.</p>
  
  <p>A workaround is to create a temporary field for the <code>x:someComponent</code> so this can be achieved as:</p>
  
  <pre><code>&lt;x:someComponent passthroughField="#{cc.attrs.someValue}"&gt;
      &lt;span&gt;#{cc.attrs.passthroughField}&lt;/span&gt;
  &lt;/x:someComponent&gt;
  </code></pre>
  
  <p>However that's very ugly and unconvenient.</p>
  
  <p>Any other ways around this problem?</p>