Search code examples
javavaadinvaadin7

Vaadin - pass data to different UI


I am new to Vaadin and I tried to find the answer to this by searching SO as well as Google so any help will be appreciated or at least point me in the right direction.

My app navigates from one view to another using the following logic

ActivitiesUI startUpActivity = new ActivitiesUI();
UI.getCurrent().setContent(startUpActivity.buildMainArea());

I need to know how I can pass data (like a String or an int) from the current UI to the one being navigated to (in this case startUpActivity)

Coming from an Android background, I am thinking along the lines of an Intent


Solution

  • After some digging into the Wiki, I ended up using the Http Session to set and get the variables and it is working fine.