you can not use GET to submit a form.
There is no "method" attr on h:form

You can do a "google map" like work around
"LINK TO THIS PAGE"

that needs abit more work, since you need to know which params where
in the request
like category=Toy; query=puzzle; ...

what you can do is that (not tested)

when your search form gets submitted all search field values are
*stored* in the properties of the Backingbean.

You know what properties are submitted and you can create a "search query"
like cat=toy&word=puzzle

Use that search string for a COMPONENT BINDING of <h:outputLink
binding="#{searchFormBean.linkComponent}" />

so when you "execute" the form submit, ensure that you create the
HtmlOutputLink Component with the right search query.

Now, when a user clicks that link "LINK TO THIS PAGE"

a request might be send to

searchView.faces?cat=toy&word=puzzle

at least you need to ensure, that the bean behind the "searchView"
page knows how to deal with these params.

something like that should work

On 10/29/06, Marcio Ribeiro <[EMAIL PROTECTED]> wrote:
Hi,

I try to use POST method for all my form submissions.
But I have a Search functionality and I want my searchs to be bookmarkable.
I'm starting to think thats IMPOSSIBLE with JSF.

I use GET for links all the time and I  know how to use <f:param>, but I
don't know how to submit form data using GET.

Anyone!??

Thanks!



--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Reply via email to