Hi Richard, thank you for your answer. But my Problem is, I want to "cut out" the people with JavaScript deactivated because they cannot use the GoogleMaps-functionality, what makes it kinda useless to submit the form. Your prototype-approach won´t work that way.
Perhaps I only add a warning-div on the top and do nothing. Any further ideas would be appreaciated. Regards Markus -----Ursprüngliche Nachricht----- Von: richardwilko [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 19. September 2008 15:01 An: users@wicket.apache.org Betreff: Re: Ajax-only-Form? 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-subm its-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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]