dev@javaserverfaces.java.net

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

From: Adam Winer <adam.winer_at_oracle.com>
Date: Wed, 27 Oct 2004 14:01:59 -0700

Ed Burns wrote:
>>>>>>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?

Yes, exactly.

-- Adam

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net