hi,

i don't understand your solution.
int i counter=0;
...
AjaxTabbedPanel() tab = new AjaxTabbedPanel("tabs", new ArrayList())
add(tab);
add(new AjaxLink("link")
        {
            public void onClick(AjaxRequestTarget target)
            {
                tab.add(new AbstractTab(new Model("tab" + counter)) {
                     public Panel getPanel(String panelId) { return new
......; }
                     });

                target.addComponent(tab);
            }
        });


vut i don't know how to add a new entry in tabbedpanes model.

regards ales


Thies Edeling wrote:
> 
> Yes you can add a new or replace existing tabs. Just add the 
> MultiTabbedPanel to an ajaxrequesttarget to update the tabs.
> 
> alexander.elsholz wrote:
>> Hi,
>>
>> exists a possibility to add a new tab to an ajax-tabbed-pane without
>> replacing existing instance?
>>
>> the reason, because of i wont replace my tab is to hold the
>> component-state
>> of the
>> other tabs.
>>
>> regards alex
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/TabbedPanel-addTab-tp20895138p20896683.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to