title: Reuse some .xhtml pages on a JSF primefaces application
body: <p>I developing a simple application using JSF and PrimeFaces and here's a problem that I'm facing:</p>
  
  <p>These are managed beans that have a <code>Person</code> property:</p>
  
  <ul>
  <li><code>ClientBean</code> </li>
  <li><code>EmployeeBean</code></li>
  </ul>
  
  <p>I have the <code>person.xhtml</code> that shows the data from a person. I include the <code>person.xhtml</code> on a <code>client.xhtml</code> and <code>employee.xhtml</code>. I need to create two <code>person.xhtml</code> because I'm using different beans. What I want to do is something like that:</p>
  
  <pre><code>&lt;c:set var="person" value="clientBean.person" /&gt; 
  &lt;ui:include src="person.xhtml"/&gt;
  
  &lt;c:set var="person" value="employeeBean.person" /&gt; 
  &lt;ui:include src="person.xhtml"/&gt;
  </code></pre>
  
  <p>And in my <code>person.xhtml</code> I can use <code>#{person.name}</code> , <code>#{person.dateOfBirth}</code>.
  I searched and use <code>&lt;c:set/&gt;</code> in JSF is wrong.</p>
  
  <p>Anyone can help?</p>