title: JSF 2 composite component, passing attributes to backing bean
body: <p>I'm stuck on simple JSF2 question:</p>
  
  <p>XHTML:</p>
  
  <pre><code>&lt;xvf:simpleOut identifier="12345"/&gt;
  </code></pre>
  
  <p>Composite component is supposed to pass "12345" to backing bean and do some output:</p>
  
  <pre><code>&lt;composite:interface&gt;
      &lt;composite:attribute name="identifier" required="true" type="java.lang.String"/&gt;
  &lt;/composite:interface&gt;
  
  &lt;composite:implementation&gt;
      &lt;!--@elvariable id="arg" type="java.lang.String"--&gt;
      &lt;ui:param name="arg" value="#{cc.attrs.identifier}"/&gt;
      &lt;h:outputText value="#{myBean.getTestOutput('???????')}"/&gt;
  &lt;/composite:implementation&gt;
  </code></pre>
  
  <p>How do I pass <code>identifier</code> value, '12345' in my case, to bean's <code>getTestOutput(String arg)</code> method?</p>