title: How to render XHTML compliant form in JSF 2.0?
body: <p>I'm trying to create a <code>form</code> compliant to XHTML 1.1 with JSF, but can't. This is my <code>.xhtml</code> file:</p>
  
  <pre><code>&lt;h:form&gt;
    &lt;h:inputText value="foo"/&gt;
    &lt;h:commandButton action="search" value="Search" /&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>In the output HTML <code>&lt;input&gt;</code> tags are not enclosed in <code>&lt;div&gt;</code> or <code>&lt;dd&gt;</code> or something similar, as they should be in XHTML 1.1. Is there any legal workaround? I don't like the idea of adding these tags explicitly to <code>.xhtml</code> file.</p>