I don't understand your question :) the tab list is just a list with
AbstractTabs. Retrieve the list (getTabs() on TabbedPanel), add a new
AbstractTab et voila.
alexander.elsholz wrote:
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]