1

I do not create Application object explicitly and suppose Vaadin does it silently.

How can I get a reference to it?

tmporaries
  • 1,523
  • 8
  • 25
  • 39

1 Answers1

3

In Vaadin 7 is called UI. Accessible with:

UI.getCurrent();

And for your own methods in extended UI like:

((MyUI) UI.getCurrent()).getMyData();

More info in Vaadin book.

Zigac
  • 1,551
  • 1
  • 16
  • 27