Thanks, Igor. I don't see getTabs method on TabbedPanel, I have wicket-extensions-1.2.2, it may be older version. Do I have to pull wicket-extensions from svn repository?
 
Regards
--Kamlesh
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: Monday, October 23, 2006 12:27 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] AjaxTabbedPanel - changing tab label

TabbedPanel has a getTabs() method which returns the list of ITab objects.

if you want to have a settitle() then implement ITab directly instead of using AbstractTab.

dont forget to add the panel to the ajax target when you change the label.

-Igor


On 10/23/06, Sharma, Kamlesh <[EMAIL PROTECTED]> wrote:
I made further digging in the issue and found that TabbedPanel component needs to provide access to its tabs list attribute and ITab interface needs setTitle method. I am new to wicket hence, I don't know weather there will  issues to add, these facilities to TabbedPanel component. I will appreciate, if Igor or other developer help us here.
 
Regards
--Kamlesh


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Sharma, Kamlesh
Sent: Sunday, October 22, 2006 9:19 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] AjaxTabbedPanel - changing tab label

Thanks. Yes, I did. I could see the changed tab object, in respond(final RequestCycle requestCycle) method of  AjaxRequestTarget. But in respondComponent( final Response response, final String markupId, final Component component), when component.renderComponent() is called, It spits old markup. I could not see the changed label going to respondComponent method.
 
--Kamlesh


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Karl M. Davis
Sent: Sunday, October 22, 2006 8:30 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] AjaxTabbedPanel - changing tab label

I haven't checked, but since AbstractTab takes a Model for the title, you could try just changing the value that model returns.
 
e.g.
Model tabLabel = new Model("label1");
... new AbstractTab(tabLabel) {...
 
... onAjaxUpdate ...
tabLabel.setObject("label2");
...
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Sharma, Kamlesh
Sent: Sunday, October 22, 2006 8:08 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] AjaxTabbedPanel - changing tab label

Hi
 
I am using AjaxTabbedPanel and needs to change some tab labels(example from existing label "Search" to "New Search" on onAjaxUpdate callback method. Is it possible?
 
Regards
Kam
 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to