So if im understanding correctly your form is submitting in the non-ajax standard way when you press return on the input field?
If so then this is my solution: http://www.richard-wilkinson.co.uk/2008/04/05/how-to-stop-non-ajax-form-submits-in-wicket/ Hope it helps, Richard Markus-66 wrote: > > Hi all, > > > > I have an issue with a Form I want only to be available to users with > Javascript turned on, so I used a AjaxButton, and set DefaultButton to the > AjaxButton. > > But the Form still submits using 'Return' - rendering the Body only also > kills the AjaxButton. Can anyone help me how to achieve this? Hiding the > Button and appending a onchange-event to the first input-field is in my > opinion a very bad way of doing it. Also "in-page" javascripting seems not > so nice. > > > > Regards > > Markus > > > ----- http://www.richard-wilkinson.co.uk My blog: http://www.richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/Ajax-only-Form--tp19569839p19571913.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]