posted 12 years ago
You can have as many h:form elements on a page as you can endure. I do this all the time.
The rules are the same as for straight HTML forms:
1. FORMs cannot be nested nor can they overlap.
2. ONLY the data in the form that contains the SUBMIT button (or other control) that fired off the request will be posted back to the server.
And for JSF:
3. If ANY control value on the submitted form fails validation, NONE of the backing bean properties will get updated AND the action method and/or listeners will not be fired. When in doubt, add an h:messages tag to your page to display any possible "validation failed" messages.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer