Removing Tabs

Is it possible to remove tabs from tabsheet? removeComponent doesn’t work.
Tab isn’t a component!

Hi,

You need to pass the component you used to create the Tab to removeComponent().

(No, I have no idea why there is no removeTab()).

Edit: created ticket
http://dev.vaadin.com/ticket/5179

Best Regards,
Marc

…and I added tabsheet.removeTab(Tab tab), should be available in the next 6.4-nightly.

Please try, and report whatever bugs I probably introduced :wink:

Best Regards,
Marc

Thx, it works!

This is kind of weird in terms of user experience.

Normal behavior (i.e. any web browser) = the next (or previous if not exists) is selected.

greets

You could
create an enhancement request
about this.

Hi Henry,

I would like to but I don’t have the TICKET_CREATE privilege :blink:

Just
register
from the top-right corner of the issue reporting page.

I was trying to say to I registered but then I came with this message while trying to create a ticket. On this page I am shown as logged out but on any others I am logged in.

I don’t see any special permission settings for your account, and all authenticated users should currently be able to create tickets unless otherwise specified.

Try to “hard refresh” the page after logging in - depending on your browser e.g. Shift+Refresh.

ok browser cache issue :wink:

BTW the ticket number is #5889 :grin:

Hi there, i did it using the getTab from the tabsheet like this:

Tab compTab = myTabSheet.getTab(Component c);
myTabSheet.removeTab(compTab);

This works for me.