Loading...
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.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Update window in a web page

Juli Julier
6 years ago May 20, 2015 3:08pm
Juli Julier
6 years ago May 21, 2015 9:11am
Marius Reinwald
6 years ago May 21, 2015 9:20am
Juli Julier
6 years ago May 21, 2015 9:40am
Marius Reinwald
6 years ago May 21, 2015 11:07am

If I understand correctly what you want to do is: As soon as the Button edit in the Footer is clicked the Text of the Label firstName gets updated.
The way you do it is updating the reference variable of "firstName" but in your case it would be a lot easier to just use

private void editFirstName(){
  firstName.setValue("Edit First Name");
}

This way you don't have to refresh or update any window.

I hope that this was really your problem and not something else.

Juli Julier
6 years ago May 21, 2015 12:39pm