another question, how can the h:form be reset as same as the normal html form. In wizard of richfaces demo, if there is a cancel button, how clear the inputs: name etc?
use this to include pages <ui:include src="test.xhtml"/>
and in the included page i.e test.xhtml do not have forms is OK.
remember that nesting of forms is not good..with that in mind decide about adding forms
Form defines part of the page that will be submitted to the server when request is done (AJAX requests have means to define processed components, but still the whole form is submitted). So you can use forms whatever you like.
Note that view state field is being rendered for each form, so that increasing number of forms for the case of client-side state saving can significantly increase response size.
thanks their replies. I use the server-side state saving. I throught that, if too many components included in a form the request size will be increased on submit. With the separate form can reduce.