thx, igor. I did something similar to that. Regarding your comment that the
data doesn't get loaded when I add the component, I did a test on it and it
calls the new panel every time i do an add:
So, every time I have this line:
add(new AbstractTab(new Model("tab1") { Panel getPanel() { return new
PanelX(); }});
PanelX() will be called,
On PanelX(), I add the components and query my service layer which gets call
too.
igor.vaynberg wrote:
>
> On 5/22/07, wicket0123 <[EMAIL PROTECTED]> wrote:
>>
>>
>> We are using AjaxTabbedPanel to display data. We don't want to pre-load
>> all
>> the data at star up. We want to load the tab's content when user clicks
>> on
>> the tab. So, we decided to use AjaxTabbedPanel. We are using
>> AbstractTab.
>> Each tab represents a category, so we hold the category id on the tab
>> panel.
>
>
> dont really understand what you are trying to do/what problem you have.
> even
> the non-ajax tabbedpanel does not load all the data on start up. it only
> loads the data once the user clicks the tab.
>
> add(new AbstractTab(new Model("tab1") { Panel getPanel() { return new
> Panel1(); }});
> add(new AbstractTab(new Model("tab2") { Panel getPanel() { return new
> Panel2(); }});
>
>
> when the tabbed panel renders it will default to tab1, so panel1() will be
> created because getpanel() will be called on the first itab. then when
> user
> clicks on tab2 panel2 will be created because getpanel() will be called on
> the second itab.
>
> -igor
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
--
View this message in context:
http://www.nabble.com/How-to-update-AjaxTabbedPanel-tab-with-new-data-tf3800175.html#a10755480
Sent from the Wicket - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user