As far as I am aware, you can only open another tab with an Anchor with its action being set to _blank.
This means you can not open another tab programmatically (with ui.navigate()), the user has to click on a link.
Anchor a = new Anchor();
a.setText("click here");
a.setHref("www.somepage.com/abc");
a.setTarget("_blank");
add(a);
Kaspar Scherrer:
As far as I am aware, you can only open another tab with an Anchor with its action being set to _blank.
This means you can not open another tab programmatically (with ui.navigate()), the user has to click on a link.
Anchor a = new Anchor();
a.setText("click here");
a.setHref("www.somepage.com/abc");
a.setTarget("_blank");
add(a);
Thanks, did not help much.
I ended up using javascript to get the current href and use