Is it possible to have multiple views / forms on 1 page?

For example
<html>
   <body>
      <ol id="menu">
         <li><a href="blah">blah</a></li>
         <li>
               <f:view>
<h:commandLink id="accountEdit" value="Profile" action="#{backingBean.accountEditCurrentUser}"/>
                </f:view>
         </li>
      </ol>

       <h1>Header</h1>
       <p>use the following form to blow</p>
      <f:view>
         <h:form>
            .....
         </h:form>
      </f:view>
   </body>
</html>

I have something like this (but the second view is actually pulled in with a JSP include) and I get some type of IO stream error.

It seams you can only have 1 f:view tag. How can I have multiple views?

Obviously I don't want 1 view around everthing because then I can't use html at all. And there is no way I am going to put verbatim around all my html because i won't have valid xml, plus that would be really messy.

I heard that in the new specs for JSF that we will be able to mix other xml in with JSF. Is this true? And are they getting rid of the annoying f:view an f:subview tags? I like faces, but as i think many people feel, not being about to mix HTML, JSF, and JSP is a large issue.

Thanks,
David

Reply via email to