I have a portlet which has many rendering and action methods:
@Controller
@RequestMapping("VIEW")
public class CartController {
@RenderMapping() // default render method
public String defaultRender(RenderRequest req, RenderResponse res, Model model) throws PortalException, SystemException {
...
}
@RenderMapping(params="action=showCustInfo")
public String showCustInfo(RenderRequest req, RenderResponse res, Model model) throws PortalException, SystemException {
...
}
@ActionMapping(params="action=acceptCart")
public void acceptCart(ActionRequest req, ActionResponse res, Model model) throws PortalException, SystemException {
...
res.setRenderParameter("action", "showCustInfo");
...
}
In the code above, the method acceptCart sets a render parameter that should cause showCustInfo to be called in rendering phase.
The problem is that the default rendering method gets called every time. What am I missing?