Re: confirm leave page when a page contains unsaved data
http://www.jroller.com/karthikg/entry/modelling_client_side_form_modifications http://www.jroller.com/karthikg/entry/modelling_client_side_form_modifications might be what you're looking for. It works well, but it works best when the behaviour is attached to the onbeforeunload event, which you can only do once. Consistently triggering the behaviour when using AJAX form submits can be tricky too. -- View this message in context: http://www.nabble.com/confirm-leave-page-when-a-page-contains-unsaved-data-tp23312432p23391789.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: confirm leave page when a page contains unsaved data
I think the approach similar to one used in CheckGroup would work. I just wondered if it has already been implemented. Newgro wrote: > > Vladimir Kovalyuk schrieb: >> Do wicket has a generic approach to handling the following scenario? >> >> 1. user opens a page with details of some entity, for instance a user. >> 2. user starts to type in fields >> 3. user clicks some link, then she is informed that the form contains >> unsaved data and asked to press "discard and proceed", "save and proceed" >> or >> "cancel". >> >> > Nope. How should wicket decide on that? It's business logic. And so you > have to present the dialog > (modal window?) yourself. Alternatively you could an javascript alert. > > Cheers > Per > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/confirm-leave-page-when-a-page-contains-unsaved-data-tp23312432p23313202.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: confirm leave page when a page contains unsaved data
Vladimir Kovalyuk schrieb: Do wicket has a generic approach to handling the following scenario? 1. user opens a page with details of some entity, for instance a user. 2. user starts to type in fields 3. user clicks some link, then she is informed that the form contains unsaved data and asked to press "discard and proceed", "save and proceed" or "cancel". Nope. How should wicket decide on that? It's business logic. And so you have to present the dialog (modal window?) yourself. Alternatively you could an javascript alert. Cheers Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
confirm leave page when a page contains unsaved data
Do wicket has a generic approach to handling the following scenario? 1. user opens a page with details of some entity, for instance a user. 2. user starts to type in fields 3. user clicks some link, then she is informed that the form contains unsaved data and asked to press "discard and proceed", "save and proceed" or "cancel".