I have a problem while doing this...
I am using Wicket 1.2.6 and when I attempt to leave the page after modifying
the form, the alert pops up, but if I select Cancel, in order to remain in
the page, everything that had Ajax stops working, without any visible
errors.
Any ideas? Did anyone had the
Have a look at this blog
http://www.jroller.com/karthikg/entry/modelling_client_side_form_modifications#comments
Basically state of the form onload is compared to that of beforeonunload.
Just understand the concept and modify accordingly. Here the author tries to
add a behavior to form's page
Thanks, this is a great tip.
swaroop belur wrote:
Have a look at this blog
http://www.jroller.com/karthikg/entry/modelling_client_side_form_modifications#comments
Basically state of the form onload is compared to that of beforeonunload.
Just understand the concept and modify accordingly.
I'd like to know if there is a way to prompt a user to save when leaving a
page using Wicket 1.2.6. I need to display a confirmation message only if
the form has been dirtied.
There is a javascript-only solution
http://www.4guysfromrolla.com/webtech/100604-1.shtml here . It's kind of
ugly