aspose file tools*
The moose likes Other Application Frameworks and the fly likes [Spring] Doubt using customized property editor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "[Spring] Doubt using customized property editor" Watch "[Spring] Doubt using customized property editor" New topic
Author

[Spring] Doubt using customized property editor

Pradeep Kumar
Ranch Hand

Joined: Sep 11, 2007
Posts: 77
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 ]

SCJP 1.6
Pradeep Kumar
Ranch Hand

Joined: Sep 11, 2007
Posts: 77
I got it resolved. The key name should be the fully qualified class name whose peoperty we need to cutomize.


Thanks and Regards,
Pradeep
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [Spring] Doubt using customized property editor