problem with multiple forms and subview

I have a problem when using NetBean Web Pack (JDK6, Net Beans 5.5, JSF 1.2).

1) I created a JSF page (hello.jsp) and a page fragment (header.jspf) inside Web Pack, and let the JSF page (hello.jsp) includes the page fragment.

2) The include instruction is outside of the "form" element id=main_form() of the first JSF page.

3) Inside the page fragment (header.jspf), I put a form (id=header_form) with some input fields inside the "subview" element.

4) When running the web application, the form and its children (id=header_form) inside the subview are not rendered.

It seems to be a problem with multiple forms on a page and the subview.

Do I use these JSF components incorrectly? Any advice?

Thanks

[750 byte] By [lancelot.huanga] at [2007-11-27 2:29:08]
# 1
According to the official W3C HTML spec you may not nest forms.So the following is not allowed:<form><form></form></form>Change it so that you gets:<form></form><form></form>
BalusCa at 2007-7-12 2:41:58 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

The forms are not nested.

hello.jsp

...

<webuijsf:body ...>

<!-- BEGIN: include header -->

<div style="margin: 0px 0px 10px 0px; left: 0px; top: 0px">

<jsp:directive.include file="Header.jspf"/>

</div>

<!-- END: include header -->

<webuijsf:form ...>

From above fragment, you can see the header.jspf is outside of the form element.

lancelot.huanga at 2007-7-12 2:41:58 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
I found my fault! when editing the header.jspf manually, I found WebPack embeded the header_form inside itself again! After removing it, the screen works
lancelot.huanga at 2007-7-12 2:41:58 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...