Wen Tong,
I think the following code does what you want:
new AjaxTabbedPanel(..................) {
private static final long serialVersionUID = 1L;
@Override
protected void onAjaxUpdate(AjaxRequestTarget target) {
System.out.println("OnAjaxUpdate aufgerufen");
if (target != null) {
int selectedTab = getSelectedTab();
// Do whatever you want with the now selected
tab und use the target variable for AJAX-actions
Stefan
-----Ursprüngliche Nachricht-----
Von: Igor Vaynberg [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 4. Januar 2008 17:25
An: [email protected]
Betreff: Re: TabbedPanel making AJAX?
why exactly isnt ajaxtabbedpanel the way to go?
-igor
On Jan 4, 2008 7:48 AM, Beyonder Unknown <[EMAIL PROTECTED]> wrote:
>
> Hi Guys,
>
> I was wondering if there's a way to implement TabbedPanel that when you click
> the tab, it will do an ajax call to the backend, and update the body of the
> tab. I looked at AjaxTabbedPanel, but it seems like its not the way to go.
>
> Any help will be gladly appreciated.
>
> Thanks,
> Wen Tong
>
> --
> The only constant in life is change.
>
>
>
>
>
> ______________________________________________________________________
> ______________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile. Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]