Re: struts2 portlet bug RenderRequest cannot be obtained in event phase

2009-08-07 Thread Nils-Helge Garli Hegvik
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

Re: struts2 portlet bug RenderRequest cannot be obtained in event phase

2009-08-07 Thread Scott Nesbitt
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

Re: struts2 portlet bug RenderRequest cannot be obtained in event phase

2009-08-07 Thread Nils-Helge Garli Hegvik
> > 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

Re: struts2 portlet bug RenderRequest cannot be obtained in event phase

2009-08-07 Thread Leonidas Papadakis
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

Re: struts2 portlet bug RenderRequest cannot be obtained in event phase

2009-08-06 Thread Nils-Helge Garli Hegvik
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

Re: struts2 portlet bug RenderRequest cannot be obtained in event phase

2009-08-06 Thread Leonidas Papadakis
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

Re: struts2 portlet bug RenderRequest cannot be obtained in event phase

2009-08-06 Thread Nils-Helge Garli Hegvik
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,

struts2 portlet bug RenderRequest cannot be obtained in event phase

2009-08-06 Thread Leonidas Papadakis
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