Re: Is there a way to be notified when a tab in a TabbedPanel is selected?

2011-11-03 Thread armandoxxx
Just a question ... what happens with other instances ? are they forgotten (null-ed) ? My problem is that I'm trying to put a PDFObject (displays PDF file in a div in a browser ) panel and JWPlayer (flash video player) into tab panel. So I have to know if older versions of these panels are

Re: Is there a way to be notified when a tab in a TabbedPanel is selected?

2009-01-29 Thread Erik van Oosten
Hi Zhubin, Everytime there is a tab switch, method getPanel from the ITab instance is called. Regards, Erik. Zhubin Salehi wrote: Hi all, How can I be notified when one of the tabs in a TabbedPanel is selected? Where is no onSelect() method in ITab interface, is there a way to achieve

Re: Is there a way to be notified when a tab in a TabbedPanel is selected?

2009-01-29 Thread Zhubin Salehi
So every time a tab is selected, a new instance of that panel will be created? Erik van Oosten wrote: Hi Zhubin, Everytime there is a tab switch, method getPanel from the ITab instance is called. Regards, Erik. Zhubin Salehi wrote: Hi all, How can I be notified when one

Re: Is there a way to be notified when a tab in a TabbedPanel is selected?

2009-01-29 Thread Martin Makundi
Yes, simply every time your panel is instantiated, it means someone navigated to the particular tab. You can monitor this also in your panel class. ** Martin 2009/1/29 Zhubin Salehi zhooz...@yahoo.com: So every time a tab is selected, a new instance of that panel will be created? Erik van

Re: Is there a way to be notified when a tab in a TabbedPanel is selected?

2009-01-29 Thread Erik van Oosten
Yes, unless you use the PanelCachingTab decorator. Erik. Zhubin Salehi wrote: So every time a tab is selected, a new instance of that panel will be created? -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ -

Re: Is there a way to be notified when a tab in a TabbedPanel is selected?

2009-01-29 Thread Zhubin Salehi
So which Panel method is a best to monitor when that panel is selected? I need to set a model property for each of my tabs. Also I tried to stop Wicket from instantiating a new Panel every time a tab is selected, here is the code: /* advanced search check box */ add(new

Re: Is there a way to be notified when a tab in a TabbedPanel is selected?

2009-01-29 Thread Zhubin Salehi
Sorry wrong code fragment! Here is the right one: /* 'search by MobiNET ID tab */ tabs.add(new PanelCachingTab(new AbstractTab(new StringResourceModel(title.byMobinetId, FindUserAccount.this, null)) { private static final long

Re: Is there a way to be notified when a tab in a TabbedPanel is selected?

2009-01-29 Thread Erik van Oosten
How about this: tabs.add(new PanelCachingTab(new AbstractTab(new StringResourceModel(title.byMobinetId, FindUserAccount.this, null)) { private static final long serialVersionUID = 5564837747113048306L; public Panel

Re: Is there a way to be notified when a tab in a TabbedPanel is selected?

2009-01-29 Thread Zhubin Salehi
This code looks cool, thanks a lot! Erik van Oosten wrote: How about this: tabs.add(new PanelCachingTab(new AbstractTab(new StringResourceModel(title.byMobinetId, FindUserAccount.this, null)) { private static final long serialVersionUID =

Is there a way to be notified when a tab in a TabbedPanel is selected?

2009-01-28 Thread Zhubin Salehi
Hi all, How can I be notified when one of the tabs in a TabbedPanel is selected? Where is no onSelect() method in ITab interface, is there a way to achieve this? Thanks, Zhubin -- View this message in context: