well the fun is the post back
ajax has the same ...
we as app devs have to deal with that.
I think it is not a big deal to provide that link ;)
On 10/30/06, Marcio Ribeiro <[EMAIL PROTECTED]> wrote:
Thank you for the reply!
In the case of the first one I can use the forceId :)
About Matthias' reply I think it's a good solution, but I still don't like
the idea of a link to bookmark. I mean.. the user isn't able to simply press
Ctrl + D.
And I can't accept that I'm not able to that with JSF.
I think that your solution work, and I think I can improve it if I could
somehow, with javascript, put this values in the url. I'll try it.
Thank you!
Cheers
2006/10/30, Matthias Wessendorf <[EMAIL PROTECTED]>:
> 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
>
--
Matthias Wessendorf
http://tinyurl.com/fmywh
further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com