posted 14 years ago
HTML (not JSF) mandates that if you have more than one form on a page, only the items within that form will be passed to the server when you submit the form. No data from any other form on the page will be submitted.
People do occasionally simulate the submission of the other form's data, but that's done by using client-side JavaScript to actually stuff the data into the DOM representation of the submitted form before submitting it. In other words, by moving the extra fields off of the form not being submitted and into the form that is being submitted.
When a JSF page is (re)rendered, all data from all the backing beans is retrieved. So if your submit changes a property on a backing bean that's got properties references in some other form, the display for that other form will reflect those changes.
All of that can be altered by AJAX and other JavaScript functions, but I'm referring to basic HTML, which is all that the core JSF functions provide.
So in summary, when you submit, only the data on the submitted form is sent, but data on all forms is retrieved when the page redisplays.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer