We are moving from Spring MVC to Spring portlet the application. I have 2 classes, one implements Controller and other extends SimpleFormController. We use Two controllers acting as handlers. One to be used when a Form based Page is submitted and the other when non-form based page is submitted. The controllers worked fine when using the Spring MVC. But on to Spring Portlet, when a form-based page is submitted, the onBindAndValidate methods are called, but the onSubmitRender method is not called instead the method in the handleRenderRequest of the class which implements Controller is called.
I tried to use AbstractFormController and AbstractController, even then the render method of the Form-based controller was not invoked.
The displayHandler implements Controller and the FormBased Controller extends SimpleFormController.
<bean id="portletModeParameterHandlerMapping" class="org.springframework.web.portlet.handler.PortletModeParameterHandlerMapping">
<property name="order" value="10"/>
<entry key="hello"><ref bean="displayHandler"/></entry>
<entry key="AAPage"><ref bean="byaForm"/></entry>
<entry key="BBPage"><ref bean="asForm"/></entry>
<entry key="CCPage"><ref bean="gsForm"/></entry>
<entry key="thankYouPage"><ref bean="displayHandler"/></entry>
Could you please reply me why the render method of the SimpleFormController is not called.