title: Pass parameters from backingBean to jsf composite component
body: <p>I am trying to pass some parameters to myCc as follows:</p>
  
  <pre><code>&lt;c:if test="${empty backingBeanRef}"&gt;
      &lt;c:set var="backingBeanRef" value="#{myBean}" /&gt;
  &lt;/c:if&gt;
  
  &lt;!-- some code--&gt;
  
  &lt;cc:myCc 
      param1="#{backingBeanRef.attribute}" /&gt;
  
  &lt;!-- some code--&gt;
  </code></pre>
  
  <p>But I am getting the following error:</p>
  
  <pre><code>Target Unreachable, identifier 'backingBeanRef' resolved to null
  </code></pre>
  
  <p>I know it is not null since I am using it before and after including myCc. If I pass the parameter as <code>param1="#{myBean.attribute}"</code> everything works properly.</p>
  
  <p>How can I pass a parameter from backingBeanRef?</p>