Printing in a Liferay Vaadin portlet

Found a workaround. Putting the html inside a Vaadin CustomLayout and setting it visible only via css media type ‘print’. This way no new window needs to be opened for printing since the CustomLayout is included to the main window and is only visible for printing.