title: Composite component with h:form weird rendering
body: <p>Composite components with an <code>h:form</code> render in a weird way. This is the JSF markup I'm using:</p>
  
  <pre><code>&lt;div id="modals"&gt;
    &lt;div id="modal1"&gt;
      &lt;custom:mycomp /&gt;
    &lt;/div&gt;
    &lt;div id="modal2"&gt;
      &lt;custom:mycomp /&gt;
    &lt;/div&gt;
    &lt;div id="modal3"&gt;
      &lt;custom:mycomp /&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>For some reason, instead of rendering each composite component inside its respective <code>div</code>, the source of the rendered HTML looks like this:</p>
  
  <pre><code>&lt;div id="modals"&gt;
    &lt;div id="modal1"&gt;
      &lt;div class="modal-dialog"&gt;&lt;!-- My rendered component --&gt;&lt;/div&gt;        
      &lt;div id="modal2"&gt;
        &lt;div class="modal-dialog"&gt;&lt;!-- My rendered component --&gt;&lt;/div&gt; 
        &lt;div id="modal3"&gt;
          &lt;div class="modal-dialog"&gt;&lt;!-- My rendered component --&gt;&lt;/div&gt; 
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>They are being rendered inside each other, not on the same level. I found out that removing the <code>h:form</code> inside my composite component fixes the issue, but I need it to trigger some actions. The composite component renders the markup for a <strong>Twitter Bootstrap</strong> modal:</p>
  
  <pre><code>&lt;cc:interface&gt;&lt;/cc:interface&gt;
  &lt;cc:implementation&gt;
    &lt;div class="modal-dialog"&gt;
      &lt;div class="modal-content"&gt;
        &lt;div class="modal-header"&gt;&lt;!-- HEADER --&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="modal-body"&gt;
        &lt;h:form&gt;
          &lt;!-- My form. Removing this form renders the HTML correctly but I need it to invoke some actions here --&gt;
        &lt;/h:form&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/cc:implementation&gt;
  </code></pre>
  
  <p>I'm using <strong>Wildfly 8.0.0 Final</strong>. Is there something I'm missing or is this a bug in the JSF implementation? Any help is appreciated.</p>