title: Facelets template reuse with conditionally displayed components
body: <p>How could I reuse the included jsf template that would display more/less data</p>
  
  <p>For example I have main.xhtml which includes the child.xhtml</p>
  
  <p>child.xhtml as below</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8' ?&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich"
        xmlns:a4j="http://richfaces.org/a4j"  xmlns:c="http://java.sun.com/jstl/core" xmlns:s="http://jboss.com/products/seam/taglib"&gt;
  &lt;body&gt;
  &lt;h:outputText value="One"&gt;&lt;/h:outputText&gt;
  &lt;h:outputText value="Two"&gt;&lt;/h:outputText&gt;
  &lt;h:outputText value="Three"&gt;&lt;/h:outputText&gt;
  &lt;h:outputText value="Four"&gt;&lt;/h:outputText&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The current implementation of child.xhtml displays "One","Two","Three" and "Four". I want to include the above child.xhtml somewhere else where it should only display "Two" and "Four".</p>