on 11/21/2000 6:18 AM, "Will Stranathan" <[EMAIL PROTECTED]> wrote:
> I don't know if this really needs to be in the docs, but on the
> Action Event Model, the recommendation is to name the Submit button
> based on the action that you want performed.
>
> Unfortunately, IE (at least on Windows) has a very nasty feature - if
> you hit Enter in an <INPUT type="text"> or <INPUT type="password">,
> the form is submitted, but the Submit button for the form is never
> clicked. So if the user hits Enter, the doPerform() action will be
> called, because eventSubmit_doWhatever is not passed.
>
> So, it's very important to EITHER make sure doPerform() just calls
> whatever you want the default action to be, or that
> eventSubmit_doWhatever is actually a hidden form element, rather than
> the name on the Submit button.
>
> Will Stranathan
Yes. That is the purpose of doPerform()...to catch all cases. You should
*always* implement doPerform() be the catchall. That is why it is an
abstract method in ActionEvent and why it is required to be implemented.
-jon
--
twice of not very much is still a lot more than not very much
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]