title: How to retrieve value of a ui:param in the backing bean
body: <p>I'm passing a parameter <code>p1</code> to another page <code>page.xhtml</code>:</p>
  
  <pre><code>&lt;ui:include src="page.xhtml"&gt;
      &lt;ui:param name="p1" value="#{someObject}"/&gt;
  &lt;/ui:include&gt;
  </code></pre>
  
  <p>Is this possible to evaluate <code>#{p1}</code> inside @PostConstruct method of the backing bean of <code>page.xhtml</code>? Using the following piece of code, <code>#{p1}</code> cannot resolve:</p>
  
  <pre><code>FacesContext currentInstance = FacesContext.getCurrentInstance();
  currentInstance.getApplication().evaluateExpressionGet(currentInstance, "#{p1}", String.class);
  </code></pre>
  
  <p><strong>Why do I need this?</strong></p>
  
  <p>I'm using an xhtml file (say component.xhtml) as a custom UI component. This file has a backing bean from which I should get component data. Since I'm including this xhtml file twice or more in my main JSF page, I want to pass different objects to each  of component.xhtml so that my component work with my custom data each time included.</p>