dev@javaserverfaces.java.net

Re: Seeking Review jsfri-63: back button and commandLink

From: Ed Burns <Ed.Burns_at_Sun.COM>
Date: Wed, 27 Oct 2004 10:05:51 -0700

>>>>> On Fri, 22 Oct 2004 13:36:13 -0700, Adam Winer <adam.winer_at_oracle.com> said:

EB> If so, how do you make it so the nulling out happens BEFORE the
EB> parameter setting code?

AW> We cheat (slightly). Instead of allowing calls to form.submit(),
AW> we direct everything through a submitForm() call that handles;

AW> (1) Running client-side validation logic
AW> (2) Clearing old parameters
AW> (3) Setting the new parameters
AW> (4) Submitting the form

So does your button cause the submitForm() to be called as well, rather
than letting the browser submit the form for you as a natural result of
the button press?

Ed

-- 
| ed.burns_at_sun.com  | {home: 407 294 2468, office: 408 884 9519 OR x31640}
| homepage:         | http://javaweb.sfbay.sun.com/~edburns/
| aim: edburns0sunw | iim: ed.burns_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net