On 2/2/07, netfork <[EMAIL PROTECTED]> wrote:
to -igor > mm yes, when you press enter the button is not invoked, only the form's > onsubmit handler is invoked -- because you didnt actually press the button > :) When a form has two TextFields, and cursor is in a TextField, press enter key, Default button's onSubmit can be called. others, if cursor is in the form, press enter key, Default button's onSubmit can also be called.
didnt even remember we have this setDefaultButton business tbh. i tweaked the 1.x branch so go ahead and give it a try. -igor Eelco Hillenius wrote:
> > On 2/1/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: >> You used Form#setDefaultButton ? > > You can see an example of where that works in the wizard component > (example abracadabra), where the default button is 'next'. > > Eelco > > -- View this message in context: http://www.nabble.com/form%27s-DefaultButon%2C-Click%27event-is-invalidation-tf3155687.html#a8765283 Sent from the Wicket - Dev mailing list archive at Nabble.com.
