|
From: Rob H. <ro...@ca...> - 2005-01-06 14:12:35
|
The key of the customEditors Map entries must be the name of the class you are registering the property editor for. Rob Steven Devijver wrote: >I register a delegating property editor like this: > > <bean class="org.springframework.beans.factory.config.CustomEditorConfigurer"> > <property name="customEditors"> > <map> > <entry key="java.lang.Object"> > <bean class="sandbox.DelegatingPropertyEditor"> > <property name="delegates"> > <map> > <entry key="classpath"> > <bean class="org.springframework.beans.propertyeditors.InputStreamEditor"/> > </entry> > <entry key="class"> > <bean class="org.springframework.beans.propertyeditors.ClassEditor"/> > </entry> > </map> > </property> > </bean> > </entry> > </map> > </property> > </bean> > >When I create this bean my property editor is not called. Why is that? > > <bean id="aList" class="java.util.ArrayList"> > <constructor-arg> > <list> > <value>classpath:sandbox.xml</value> > <value>class:sandbox.TestSandBox</value> > <value>a string</value> > </list> > </constructor-arg> > </bean> > >Steven > > >------------------------------------------------------- >The SF.Net email is sponsored by: Beat the post-holiday blues >Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. >It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt >_______________________________________________ >Springframework-developer mailing list >Spr...@li... >https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > |