Samuel
Samuel

Reputation: 1667

Liferay Vaadin 7 Portlet: Init Method is not Called when Page is Refreshed

In a Liferay portlet, a Vaadin 7 UI's init method is only called once, even when the page the portlet is on is refreshed in the browser with F5.

There is a solution for Vaadin 6 outlined here: https://www.liferay.com/de/community/forums/-/message_boards/message/12501036

But, for the current Vaadin version 7, this method doesn't work, as the class PortletApplicationContext2 is no longer part of Vaadin.

How can I, in a Vaadin 7 Liferay portlet UI, react on the user refreshing the page with F5?

Upvotes: 1

Views: 1350

Answers (1)

Pavlo Butenko
Pavlo Butenko

Reputation: 594

You can use PortletListener interface.

Here you can find example.

Upvotes: 2

Related Questions