Get current portlet id vaadin in liferay

hi all
I have develop vaadin in liferay when i get portletId it return null

themeDisplay = (ThemeDisplay) request
PortletDisplay portletDislay = themeDisplay.getPortletDisplay();
String portletId = portletDislay.getId();

have any way to get portlet id vaadin


In fact, it’s hard to understand what you are trying to achieve here, but if you are looking for the id of the portlet session, you may implement the PortletListener and then via any of the requests do: request.getPortletSession().getId(). I’m not sure if it works for you, but you could give it a shot.