[seam-dev] Can someone please take a look a this
Norman Richards
orb at nostacktrace.com
Sat Nov 22 22:32:32 EST 2008
On Nov 22, 2008, at 9:37 AM, Lincoln Baxter, III wrote:
> I'm the author of the PrettyFaces extension. I just thought I would
> provide some explanation.
> Currently, if you wish to create bookmarkable URLs in Seam, when you
> submit a form with validation that fails, the form URL will display
> the JSF view ID (eg. /faces/store/buy.jsf), at this point Seam will
> have to send a redirect to the browser to redirect them back to the
> proper URL (eg. /store/buy). This is alright, but it causes wasted
> bandwidth, increased client wait time, and extra CPU usage. On a
> high-load system, this can matter a lot.
You almost always want to redirect after a POST to keep the browser in
a sane condition. That being said, we should be be rewriting
outgoing URLs even in this case, and if we aren't I would think it's a
bug we need to fix. I'll take a look and see if I observe the same
behavior.
More information about the seam-dev
mailing list