What is the relationship and difference between ActionRequest, RenderRequest and PortletRequest?
Can we get instance of one from another?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
PortletRequestis the parent of both. AnActionRequestand aRenderRequestare both different types ofPortletRequestobjects.An
ActionRequestis valid during the action processing phase of the portlet. During this phase, the portlet hasn’t completely decided how it is going to render itself, be it minimized, maximized, in edit mode or in veiw mode, etc.On the other hand, the
RenderRequestis valid during the rendering phase of the portlet. At this point, the portlet knows how it is going to render itself, and certain changes such as window state, are not allowed.If you want to pass the params from action to render, you would need to set the
ActionResponseusingThen this is available in the corresponding
RenderRequest.Answer was found here