Re: Switch tab only if user doesn't want to save changes.

2009-03-15 Thread Fabio Fioretti
On Wed, Mar 11, 2009 at 6:30 PM, jchappelle wrote: > > Could you post how you are detecting unsaved changes? I am trying to > implement something similar. Hi Josh, it depends on the kind of data you are dealing with, but basically it is just a matter of keeping the initial model object values som

Re: Switch tab only if user doesn't want to save changes.

2009-03-11 Thread jchappelle
Could you post how you are detecting unsaved changes? I am trying to implement something similar. Thanks, Josh Fabio Fioretti wrote: > > Thank you Maurice, > > what you suggested matched the way I was trying to solve the problem, > but I had to add a bit of client-side logic to decide whethe

Re: Switch tab only if user doesn't want to save changes.

2008-07-15 Thread Fabio Fioretti
Thank you Maurice, what you suggested matched the way I was trying to solve the problem, but I had to add a bit of client-side logic to decide whether to display the confirm dialog or not, basing the decision on the enabled/disabled status of the save button inside the first tab, which already imp

Re: Switch tab only if user doesn't want to save changes.

2008-07-13 Thread Maurice Marrink
Override newLink to return an ajaxfallbacklink where you have overridden the getAjaxCallDecorator method to return a custom IAjaxCallDecorator. Use that to insert a javascript confirm dialog. Maurice On Fri, Jul 11, 2008 at 7:28 PM, Fabio Fioretti <[EMAIL PROTECTED]> wrote: > Hi all, > > thanks i

Switch tab only if user doesn't want to save changes.

2008-07-11 Thread Fabio Fioretti
Hi all, thanks in advance for your precious support. I have an AjaxTabbedPanel with two tabs. In the first tab there is a panel with a form, some input fields and a save button; the content of the second tab is irrelevant. Use-case: 1 - user selects first tab; 2 - user makes some changes in the