<o:form> extends the standard
and provides support for including all view parameters in the URL that's used for the post-back, or all
request parameters, or the entire original request URI.
By setting the
includeViewParams attribute to true (default is false),
the current value of every view parameter will be added to the action URL that will be rendered
on the form. This is similar to how the attribute of the same name can be used on the
In case all URL (GET) parameters are needed, the
can be set to true (default is false). This setting will override
In case the entire original request URI, including the URL (GET) parameters, is needed, the
useRequestURI attribute can be set to
true (default is
This setting will override
First do a GET request to the current page to start using a view parameter.
Then, do one or more POSTs in an o:form to see that the GET parameter that's been used as a view parameter in the URL is preserved.
Now do a GET request to the current page to additionally start using GET parameters which are NOT also view parameters.
Then, do one or more POSTs in an o:form with includeRequestParams to see that all the GET parameters are being preserverd in the URL (try to click "POST-BACK o:form with includeViewParams" to see that only the view param will be preserved).
Then, do one or more POSTs in an o:form with useRequestURI to see that the entire request URI, including GET parameters, is being preserverd in the URL.
Finally, do a POST via a standard JSF h:form to see that all the GET parameter in URL disappears.