It still seems as though the form is trying to submit in a non-ajax way, as
this is the same as navigating to a different url, which is why your modal
window is asking for confirmation.

You still need prototype for the wicket version, as that is just the js code
wrapped up in a wicket behavior.

try something like this:
$('formId').observe('submit', function(e){ Event.stop(e);}); in your modal
window html, where formId is the dom id of the form causing the trouble.

That should stop any non-ajax submits from the form, however a possibility
is that the wicket code detects the submit before the other code has a
chance to stop it, so this method may not work.

I also found this which may help you 
http://www.arraystudio.com/as-workshop/disable-form-submit-on-enter-keypress.html
http://www.arraystudio.com/as-workshop/disable-form-submit-on-enter-keypress.html
 

Richard 


ulrik wrote:
> 
> Hmm, it did not work for me..
> I tried the wicket version, but it still askes me if I want to navigate
> away from the page when I hit enter in the TextField
> 
> 
> 


-----
http://richard-wilkinson.co.uk My blog: http://richard-wilkinson.co.uk 
-- 
View this message in context: 
http://www.nabble.com/TextField-inside-a-ModalWindow-problems-tp20363183p20379158.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]

Reply via email to