Hi Stefan, 

I already tried this, but onAjaxUpdate() is not even executed. Anyways, I have 
to take  look and see if theres another way to implement hibernate with wicket.

Thank you very much!

Best,
Wen Tong
 
--
The only constant in life is change.

----- Original Message ----
From: Stefan Lindner <[EMAIL PROTECTED]>
To: [email protected]
Sent: Friday, January 4, 2008 8:45:33 AM
Subject: AW: TabbedPanel making AJAX?


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]






      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to