Greetings to all ,
i have setup latest struts 2.1.6 and created a simple portlet for
liferay 5.2.3
Everything went smoothly until i tried to run the below code :
RenderRequest req = PortletActionContext.getRenderRequest();
ThemeDisplay themeDisplay = (ThemeDisplay)
req.getAttribute(WebKeys.THEME_DISPLAY);
PortletDisplay portletDisplay = themeDisplay.getPortletDisplay();
in a new action that i called from the index view action. This code runs
smoothly on the index view action but in my second action i get the
below exception
java.lang.IllegalStateException: RenderRequest cannot be obtained in
event phase
at
org.apache.struts2.portlet.context.PortletActionContext.getRenderRequest(PortletActionContext.java:66)
in the first line ( RenderRequest req =
PortletActionContext.getRenderRequest(); )
I would really appreciate any replies since i am on a tight schedule.
Regards,
Leon
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org