views:

14

answers:

0

Hi @all!

New Problem:

I register / bind my custom property editor and get an java.lang.IllegalArgumentException - as expected. The problem: I do not know how to create a custom error message if binding fails.

Any idea? THX!

@InitBinder( { "playerCreationBean" } )
protected void initBinder( final WebDataBinder binder )
{
   binder.registerCustomEditor(Date.class, new DatePropertyEditor());    
}