t; Thanks,
>
> Scott
>
>
>
> - Original Message
> From: Nils-Helge Garli Hegvik
> To: Struts Users Mailing List
> Sent: Friday, August 7, 2009 4:41:53 AM
> Subject: Re: struts2 portlet bug RenderRequest cannot be obtained in event
> phase
>
>>
>&g
portlet bug RenderRequest cannot be obtained in event
phase
>
> I have also noticed that struts form tag breaks the layout of the page. I am
> not sure if you have seen this. I will try to find out why (i.e. not
> standard html or css issue), otherwise i will use html form.
Try using
>
> I have also noticed that struts form tag breaks the layout of the page. I am
> not sure if you have seen this. I will try to find out why (i.e. not
> standard html or css issue), otherwise i will use html form.
Try using the "simple" theme.
Nils-H
I understand your solution but the issue occurs when i call editcontent
from the jsp file. At that point i can not get RenderReuqest in
editcontent action that i need further down in the code. RenderRequest
will provide me portletDisplay and from portletDisplay i get the
instanceId that i use
Try something like this:
index
This of course assumes that you have actually separated the processing
and view logic in these two actions.
You should also take a look at the portlet tutorial:
http://struts.apache.org/2.1.6/docs/struts-2-portlet-tutorial.html
Nils-H
2009/8/6 Leonid
Hi Nils-H and thanks for your reply. Much appreciated.
At the moment this is in my struts.xml
/WEB-INF/jsp/view/index.jsp
/WEB-INF/jsp/view/edit.jsp
/WEB-INF/jsp/view/index.jsp
initially the portlet executes the index ac
The portlet execution life cycle is separated in two: The action/event
phase, in which state transitions (typically a form submit) occurs,
and then the render phase, where the actual output is rendered. The
request object that is available in these two phases are not the same.
In the action phase,
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(We
8 matches
Mail list logo