title: What does <f:facet> do and when should I use it?
body: <p>I have been having trouble with the tag <code>&lt;f:facet&gt;</code>. I am working form other examples of code which use it, but I'm not sure exactly what purpose it serves.</p>
  
  <p>I have written some code which in method is exactly the same as other code I have seen which works, except there's is wrapped in a <code>&lt;f:facet name=actions&gt;</code> tag. When I add this around my code the drop down box I am wrapping it around disappears when I deploy. Anyone able to suggest a reason for this or give me an insight into how and when to use facet?</p>
  
  <p>Here is my code, I won't bother adding the bean code as they're just basic getters and setters and I don't think they're causing the trouble.</p>
  
  <pre><code>&lt;f:facet name="actions"&gt;
      &lt;p:selectOneMenu id="SwitchWeekDrpDwnMenu" 
                       value="#{depotWorkloadBean.selectView}"
                       partialSubmit="true"&gt;
          &lt;p:ajax update="mainForm" 
                  listener="#{depotWorkloadBean.updateView}" /&gt;
          &lt;f:selectItem itemLabel="Day view" itemValue="Day"/&gt;
          &lt;f:selectItem itemLabel="01/01/2014" itemValue="Week"/&gt;
      &lt;/p:selectOneMenu&gt;
  &lt;/f:facet&gt;
  </code></pre>
  
  <p>If I remove the facet tag the dropdown box displays, but doesn't function as it should with the beans.</p>