AjaxTabbedPanel - intercept switching tabs

2011-10-20 Thread heapifyman
Hello, is there a default way to determine when a user switches between tabs in an AjaxTabbedPanel? I see onAjaxUpdate(final AjaxRequestTarget target) but that is called after the new tab has been set. I would like to add a confirmation dialog before the new tab is set in case the user had

Re: AjaxTabbedPanel - intercept switching tabs

2011-10-20 Thread manuelbarzi
may you follow something like this: public class AjaxTabbedPanel extends TabbedPanel { public AjaxTabbedPanel(String id, ListITab tabs) { super(id, tabs); setOutputMarkupId(true); setVersioned(false); } @Override

Re: AjaxTabbedPanel - intercept switching tabs

2011-10-20 Thread Martin Grigorov
On Thu, Oct 20, 2011 at 11:57 AM, manuelbarzi manuelba...@gmail.com wrote: may you follow something like this: public class AjaxTabbedPanel extends TabbedPanel {        public AjaxTabbedPanel(String id, ListITab tabs)        {                super(id, tabs);