On Tue, Dec 18, 2007 at 03:32:14PM -0800, Ballist1c wrote: > > Hey guys, > > I have created the following form (code below). > > The form works fine, when i enter a value into the txt field and mouse click > on the AjaxFormSubmitLink... BUT if i type something into the TextField and > press the enter key, the page loads 'something'... but does nothing.... and > the form is broken till i do a hard refresh, usually i close the browser and > start it up again. The application itself doesn't crash, and all the other > AJAX on the page works fine. > > I want to know if anyone has had this problem before. I am pretty stuck on > this one at the moment. >
IIRC, when you press Enter, Firefox simulates clicking the first button on the form, i.e. the (name, value) pair of the button is sent as part of the POST. However, Internet Explorer *doesn't* do this; it simply submits the form as if no button has been pressed. In this case, Wicket wouldn't know to route your post to your AjaxFormSubmitLink.onSubmit. I would try overriding Form.onSubmit in your form class instead. > One hack solution i was wondering if someone can help me out with, is to > disable the auto-submit on Enter Key press... anyone know how to do that? Your users might find this annoying. I know I would! jk --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
