Results 1 to 2 of 2

Thread: Validation doesn work

  1. #1

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    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.

Similar Threads

  1. Replies: 1
    Last Post: Apr 29th, 2009, 12:36 PM
  2. Replies: 2
    Last Post: Oct 10th, 2005, 05:12 PM
  3. Lost with Validation
    By RAPHEAD in forum Architecture
    Replies: 6
    Last Post: May 29th, 2005, 06:01 AM
  4. Domain Object Validation
    By lhilden in forum Architecture
    Replies: 4
    Last Post: Dec 14th, 2004, 07:00 AM
  5. Replies: 0
    Last Post: Nov 15th, 2004, 11:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •