-
1. Re: how to use h:form rightly
Dongyao Zhao Mar 18, 2009 12:16 PM (in response to Dongyao Zhao)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?
-
2. Re: how to use h:form rightly
inv3r53 d Mar 18, 2009 1:26 PM (in response to Dongyao Zhao)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 -
3. Re: how to use h:form rightly
Nick Belaevski Mar 18, 2009 4:50 PM (in response to Dongyao Zhao)Hello,
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. -
4. Re: how to use h:form rightly
Dongyao Zhao Mar 19, 2009 4:20 AM (in response to Dongyao Zhao)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.