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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Resetting a Vaadin component?
suppose i have two components in my current page
1. TreeTable and
2. Embedde (type --> Browser)
If i want to reset the embedded on a button click or after some certain intervals, is it possible how?
I want to reload the web content at certain interval.
suppose currently my Embedded object is displaying a page
what i meant by reset is ==> i want to reload the page
Have you tried something like :
embedded.setSource(new ExternalResource(((ExternalResource)embedded.getSource()).getURL()));
Or if you know the URL :
embedded.setSource(new ExternalResource(url));
ok
It worked while executing that code after button click
however when i tried
timer = new ScheduledThreadPoolExecutor(5);
timer.scheduleAtFixedRate(new Runnable() {
public void run() {
otsRunStatus
.setSource(new ExternalResource("http://vaadin.com"));
System.out.println("OTS Status Reloaded");
System.out.println(otsRunStatus.getSource().toString());
}
}, 0, 60 * 1000, TimeUnit.MILLISECONDS);
it didnt work
System.out.println("OTS Status Reloaded");
System.out.println(otsRunStatus.getSource().toString());
those two statements do work. But page doesnt get refresh. ANy idea?