• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

PropertyEditorSupport setter and getter is not called

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am trying to create a CutomPropertyEditorSupport but the getAsText() and setAsText() are not called. I am using Spring 2.5 not the Spring 3.

Here is my code:


I am adding this Custom Editor in Controller initBinder method.


The Sysout of initBinder is coming but the sysout of propertyEditor is not coming. So I think the setAsText method is not called. Please help me
 
Gourav Bansal
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know I am using older spring. I tried to learn the spring 3. But overthere everything is done via annotation. I am not getting how the things are working. So come back to old for some ttime to learn the Spring properly. Could you please help me in my problem
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would recommend against using this old version of Spring to learn with. It will just bite you later. I would suggest using the newest version of Spring then asking about the parts of it here that you are having trouble with.
 
Gourav Bansal
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Bill for the suggestion. But before this i tried the latest spring and in latest spring everything is happened in the air just use the annotation. I just want to go into the depth to learn how the Spring peoples have created the things so that I can improve my coding practice and and also learn other things not only spring

The solution of it I got is

In initBinder i was using this


Instead of the above it should be


The property on which I am applying Custom Editor is of String type
reply
    Bookmark Topic Watch Topic
  • New Topic