Results 1 to 2 of 2

Thread: How to remove or replace Spring MVC's default property editor?

  1. #1
    Join Date
    Feb 2011
    Posts
    12

    Default How to remove or replace Spring MVC's default property editor?

    I need to write a Integer property editor that accepts empty value and sets corresponding fields of an object to null. It seems that the built-in Integer property editor cannot do that.

    I added the new Integer property editor as I did for other custom property editor (they work), but it is not working. It seems the new custom property editor does not replace the built-in one.

    How to remove or replace Spring default property editor?

    Thanks for help!

    All the best.

  2. #2
    Join Date
    Feb 2011
    Posts
    12

    Default

    My bad. I did not notice that my Integer field is defined as "int". I changed it to Integer and then everything is working.
    Last edited by Springsky; Jun 14th, 2011 at 11:37 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
  •