Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[Spring] Doubt using customized property editor

 
Pradeep Kumar
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am trying to create a cutom property editor where i extend the CustomEditorConfigurer class and override the setAsText method. How to i wire the bean in the xml file. I tried the sample example given in Sprin In Action but what should i enter in the <entry key > tag as?


<bean id="customEditorConfigurer"
class="org.springframework.beans.factory.config.CustomEditorConfigurer">
<property name="customEditors">
<map>
<entry key="what should be the value here">
<bean id="phoneEditor"
class="com.springinaction.02.PhoneEditor">
</bean>
</entry>
</map>
</property>
</bean>

Kindly revert back with the solution.

Thanks and Regards,
Pradeep Kumar
[ May 21, 2008: Message edited by: Lasse Koskela ]
 
Pradeep Kumar
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it resolved. The key name should be the fully qualified class name whose peoperty we need to cutomize.


Thanks and Regards,
Pradeep
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic