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 jchappe...@4redi.com 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

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 whether to

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

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