If in spring portlet controller, I have one methof annotated with @ActionMapping
and another method annotated with @RenderMapping(params = "action=detail")
, I see that to come from method #1 to method #2, we do not call the method#2 directly, instead we set a Actionresponse.setRenderParameter("action", "detail")
in method #1 and method#2 will pick it up from here.
My first question is what advantages are we getting from separating the render phase from the Action Phase (or should I say Request Phase)? And also why we do not do a direct method call and instead call the method by setting a render parameter?