Reputation: 1336
In gwt, I set the hosted page html height=100% and body height = 100% and then in entrypoint Class, I set rootpanel height = 100% and width = 100% and the enclosing docklayoutpanel height = 100% and width = 100%. but in portlet view.jsp, as it is only a fragment of whole page, so it has no and element, so how to migrate this setting to portlent (liferay portal protlet)
Upvotes: 0
Views: 347
Reputation: 2389
Some time ago, I've written a small entry in my blog about including a GWT portlet inside a Liferay portlet.
If you follow the steps I've describe, you just need to set the docklayoutpanel sizes to 100%.
http://www.jmichelgarcia.com/2012/gwt-smartgwt-in-a-liferay-portlet/
EDIT
Regarding the sizing issues, I didn't find a nice solution. However, you can use GWT to retrieve the screen sizes at runtime if it helps.
As far as I know, Liferay's portlet policy is to size based on its contents.
Please see : Controling the size of a Portlet in Liferay
this : https://vaadin.com/forum/-/message_boards/view_message/433164
and this : http://www.liferay.com/community/forums/-/message_boards/message/10327941
Upvotes: 2