Hi,
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 mapping
The displayHandler implements Controller and the FormBased Controller extends SimpleFormController.Code:<bean id="portletModeParameterHandlerMapping" class="org.springframework.web.portlet.handler.PortletModeParameterHandlerMapping"> <property name="order" value="10"/> <property name="portletModeParameterMap"> <map> <entry key="view"> <map> <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> </map> </entry> </map> </property> </bean>
Could you please reply me why the render method of the SimpleFormController is not called.
Thanks,
Shiva


Reply With Quote