PDA

View Full Version : Validation doesn work


radone
Jan 24th, 2005, 06:53 AM
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:
public class TownFormController extends BaseFormController {

public ModelAndView onSubmit(HttpServletRequest request,
.....
}

protected Object formBackingObject(HttpServletRequest request)
.....
}
}

katentim
Jan 24th, 2005, 06:44 PM
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.