Announcement Announcement Module
Collapse
No announcement yet.
Validation doesn work Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Validation doesn work

    Can anyone tell me what affects if submitted form will be validated. I have Towns and Countries. In Countries works validating in Towns not and I can't find where what differ (or error is).

    Any suggestion?

    Implemented methods:
    Code:
    public class TownFormController extends BaseFormController {
    	
    	public ModelAndView onSubmit(HttpServletRequest request,
    .....
    	}
    
    	protected Object formBackingObject(HttpServletRequest request)
    .....
    	}
    }

  • #2
    Tty taking a look at org.springframework.web.servlet.mvc.AbstractFormCo ntroller.isFormSubmission

    By default, a POST is treated as a form submission. Check Towns is submitted by POST - if not, overrride isFormSubmission.

    Comment

    Working...
    X