You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "alexander.elsholz" <al...@widas.de> on 2008/12/08 14:14:07 UTC
TabbedPanel#addTab
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
--
View this message in context: http://www.nabble.com/TabbedPanel-addTab-tp20895138p20895138.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: TabbedPanel#addTab
Posted by "alexander.elsholz" <al...@widas.de>.
hi,
thanks a lot.
regards alex
Thies Edeling wrote:
>
> 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: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/TabbedPanel-addTab-tp20895138p20903629.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: TabbedPanel#addTab
Posted by Thies Edeling <th...@rrm.net>.
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: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: TabbedPanel#addTab
Posted by "alexander.elsholz" <al...@widas.de>.
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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: TabbedPanel#addTab
Posted by Thies Edeling <th...@rrm.net>.
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org