I have a MenuBar in my VAADIN application, in this MenuBar i have a link to my wiki:
Wiki = new Link();
Wiki.setCaption("Wiki");
Wiki.setStyleName("mypicto");
Wiki.setImmediate(true);
Wiki.setSizeUndefined();
Wiki.setIcon(iconWiki);
With a Command:
MenuBar.Command wikiLink = new MenuBar.Command() {
public void menuSelected(MenuItem selectedItem) {
getUI().getPage().open("url_to_wiki","_blank");
}
};
then i add the link and the commmand in my MenuBar
MenuBar menuBar = new MenuBar();
menuBar.addItem("Wiki",iconWiki, wikiLink);
The problem is, i can't open the link in a new tab, it's only opening in a pop-up, wich is blocked by default in almost all web browsers.
Is there a way to open my link in another tab instead of Pop-up in my MenuBar?