Forums de discussion

Embeded portlet and WindowsState

Dyrt Dancer, modifié il y a 13 années.

Embeded portlet and WindowsState

Junior Member Publications: 49 Date d'inscription: 29/01/10 Publications récentes
Hi.
I have a need to embed a portlet into theme, so it will be present on every portal's page. I've did it in the following manner:
#set ($VOID = $velocityPortletPreferences.setValue('display-style', '1'))
#set ($VOID = $velocityPortletPreferences.setValue('portlet-setup-show-borders', 'true'))
#set ($myPortletId = "embed_WAR_embedportlet")
$taglibLiferay.runtime($myPortletId, '', $velocityPortletPreferences.toString())
#set ($VOID = $velocityPortletPreferences.reset())

On this step all is fine. The problem is that this portlet should maximize itself on some action. In its processAction method I execute:
actionResponse.setWindowState(WindowsState.MAXIMIZED)

and here comes the problem: portlet enlarges, but not maximizes, and I still can see other portlets placed on the page.
How portlet, which embeded into a theme, can be maximized? Can it?
Dyrt Dancer, modifié il y a 13 années.

RE: Embeded portlet and WindowsState

Junior Member Publications: 49 Date d'inscription: 29/01/10 Publications récentes
Up.