Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 3 weeks ago
Duplicate tab check
Hi,
Is there a way to check if the tab component is a duplicate of another?
For example:
class MyBean {
int id = 0;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
}
class MyForm extends FormLayout() {
private MyBean bean;
public MyForm(MyBean bean) {
this.bean = bean;
// build the form
}
}
tab1 is myform of mybean with id 1
tab2 is myform of mybean with id 2
How do I check if tab1 or tab2 is already exisits to prevent opening duplicate tabs?
I am using Vaadin 7.5.10 with Tomcat 8.
Thanks.
Last updated on
You cannot reply to this thread.