You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by WicketUser0208 <so...@yahoo.com> on 2008/11/08 01:08:33 UTC

Refreshing the form inside the ModalWindow



richardwilko wrote:
> 
> 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
>> 
>> 
>> 
> 
> 


I have similar problem. In my case, I have a modal window with form inside
the modal window. When I submit the form, the form refresh doesn't occur. In
the wicket debug, it says the "form#" is not found in the document. Can any
one help me with this.

-- 
View this message in context: http://www.nabble.com/TextField-inside-a-ModalWindow-problems-tp20363183p20389932.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org