I don't think there's an easy solution for what you want. You can try putting in two buttons, set one button as form default and hide it using css. That one should be submitted when you press enter on the text field.
-Matej On 9/27/07, Gwyn Evans <[EMAIL PROTECTED]> wrote: > Hi, > > I've got a form, on which I have, among other things, a TextField and an > AjaxFallbackButton. > > The problem I have is that when then user enters a string into the > text field and presses return, both the TextField.onModelChanged() and > the AjaxFallbackButton.onSubmit() fire, but I'd like to avoid the > latter and only have that happen when it's explicitly clicked. > > Is there a way of doing that, or do I just need to split them into two > forms? If this a case for nested forms, in which case, which should be > inside the other & why? > > -- > Best regards, > Gwyn mailto:[EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
