Hello,
I'm creating a spring based portlet for liferay. In my searchController I want to call onSubmitRender method insteadof onSubmitAction method or atleast both, when form gets submitted, since I have to show the result according to teh query result. Some how only onSubmitAction method is getting called by form submission.

Code:
  @Override
    protected void onSubmitAction(ActionRequest request, ActionResponse response, Object command, BindException errors) throws Exception {
    System.out.println("inside onSubmitAction method in searchController.");
    super.onSubmitAction(request, response, command, errors);
}
Code:
    @Override
    protected ModelAndView onSubmitRender(RenderRequest request, RenderResponse response, Object command, BindException errors) throws Exception {
        System.out.println("inside onSubmitRender in searchController.");
        ModelAndView mav = new ModelAndView();
         searchFormData = (SearchFormData) command;

        Collection results = filterResult(command);
        if (results.size() < 1){
            errors.reject("not found", "AttachmentTypes are not found");
            return showForm(request, response, errors);
        }
        if (results.size() > 1){
            mav = new ModelAndView("AttachmentTypeList", "attachmenttypes", results);
        }
        if (results.size() == 1){
          AttachmentType attachmentType =  (AttachmentType) results.iterator().next();
       // return new ModelAndView("AddAttachmentType", "attachmenttype", searchFormData.getAttachmentType());
        mav = new ModelAndView("AddAttachmentType", "attachmenttype", attachmentType);
        }
        return mav;
       // return super.onSubmitRender(request, response, command, errors);
    }
I'll appreciate any help.
Thanks,
anita