title: Mix HTML and JSF in a JSF subview
body: <p>The problem I have today is about dealing with HTML in an included JSP, with JSF.
  So here's the situation : I use JSF 1.2 by IBM on RAD with Websphere v6.1 I have a custom component (from the company layer) to use tabs.
  And in order to have a cleaner code, I just want to separate the JSF code of each tab in a separated JSP, this way, main.jsp :</p>
  
  <pre><code>&lt;customTag:tabComponent&gt;
  &lt;jsp:include page="/jsp/workflow/tab1.jsp"&gt;&lt;/jsp:include&gt;
  &lt;div align="right"&gt;
      &lt;customTag:switchToTab title="Next" tabValue="2"&gt;&lt;/customTag:switchToTab&gt;
  &lt;/div&gt;
  &lt;/customTag:tabComponent&gt;
  </code></pre>
  
  <p>And my tab1.jsp :</p>
  
  <pre><code>&lt;!-- Taglibs declared here --&gt;
  &lt;f:verbatim&gt;
  &lt;div id="myDivId"&gt;
      &lt;fieldset&gt;
          &lt;legend&gt;myLegend&lt;/legend&gt;
          &lt;h:outputText value="#{myBean.someContent}"&gt;&lt;/h:outputText&gt;
          &lt;!-- HERE are a lot of JSF components, selectItems, inputText... --&gt;
      &lt;/fieldset&gt;
  &lt;/div&gt;
  &lt;/f:verbatim&gt;
  </code></pre>
  
  <p>So the JSF components are processed, but HTML seems to be treated after and appears after, outside of the HTML generated by JSF. Something like</p>
  
  <pre><code>&lt;table&gt;
      &lt;!-- generated content --&gt;
  &lt;/table&gt;
  &lt;div id="myDivId"&gt;
  ...
  </code></pre>
  
  <p>although the table should be inside the div. I tried to use the <code>&lt;f:verbatim&gt;</code> tag different ways, and the only solution was to surround <code>&lt;div&gt;</code> and <code>&lt;/div&gt;</code> by the verbatim opening and closing tags, which is dirty and makes Websphere going crazy.</p>
  
  <p>Google did not find anything relevant, so have you guys already encountered the same issue? Is it possible to find a clean solution or do I have to include all my code inside the same JSP? Thanks in advance.</p>