PortletMVC - RenderCommand Usage?
I've recently been using Spring Portlet MVC on a demonstrator application using Weblogic Portal Server 8.1 and ran into something interesting. Not sure if this is an issue, or just how things are.
The issue I've run into is when switching from Edit to View modes, after a form submission in the Edit mode. My edit and view modes have two different command objects, and it would seem that the last one that I've done a form submission on is having its command object cached as the 'RenderCommand'. This causes the view (JSP with JSTL) to barf, since it can't find its command object due to how the render request is handled. (formBackingObject isn't called) I've managed to get around this by overriding the onSubmitRender() methods on both controllers. (by explicitly calling formBackingObject() myself)
My question is: Is this how its supposed to act?
Seems kind of odd, since I'd expect the RenderCommand to be the Command object for the controller. But perhaps I'm just ignorant to the difference between the Command and RenderCommand objects. Anyone have any insight?
(New to the whole Portal thing, and Weblogic Portal is not helping much with my education on JSR-168 based portlets...)