0

Is there any more elegant and JSF-Oriented way to create a form that submits using GET rather than using the following two methods:

  1. Using normal <form> and <input type="submit" /> tags

  2. Firing up a Post-Redirect-Get. The first strategy does it ok with only one GET request, but I don't know if there is a better way to do.

I'm going with normal <form> and <input type="submit" /> so far.

Obs: BalusC expose those two known methods here.

Community
  • 1
  • 1
bluefoot
  • 10,220
  • 11
  • 43
  • 56
  • 1
    Hopefully this GET doesn't do anything bad to a database, and can't be reached via normal links, or you may be unhappy the next time a web crawler spiders your site ... – Anon Apr 14 '11 at 17:54
  • despite some old web crawlers, that only knows how to fire GET requests, and assuming the server side is not checking whether method is, GET has the same security as POST. – bluefoot Jul 12 '11 at 15:02

1 Answers1

0

Ok, I've ended up with standard html <form> and <input type="submit" />. There's nothing wrong about it.
EDIT:
Except when I want to include view params. In that case, a Post-Redirect-Get is a way much better approach.

bluefoot
  • 10,220
  • 11
  • 43
  • 56