|
From: snpe <sn...@sn...> - 2005-06-04 22:43:52
|
Hello,
This is fragment from rcp project's richclient-application-context.xml :
<bean id="binderSelectionStrategy"
class="org.springframework.richclient.samples.petclinic.ui.binder.PetClinicBinderSelectionStrategy">
<property name="bindersForPropertyTypes">
<map>
<entry>
<key>
<value type="java.lang.Class">java.util.Date</value>
</key>
<bean
class="org.springframework.richclient.samples.petclinic.ui.binder.CustomDatePickerBinder"/>
</entry>
<entry>
<key>
<value type="java.lang.Class">
org.springframework.samples.petclinic.PetType</value>
</key>
<bean
class="org.springframework.richclient.samples.petclinic.ui.binder.PetTypeBinder">
<property name="clinic">
<ref bean="clinic"/>
</property>
</bean>
</entry>
</map>
</property>
</bean>
bindersForPropertyTypes is map and it work fine - spring instantiate bean, but eclipse webtools validation return error :
Attribute "type" must be declared for element type "value".
The content of element type "entry" must match "(bean|ref|idref|list|set|map|props|value|null)".
Attribute "key" is required and must be specified for element type "entry".
Is it dtd problem ?
regards
Peco
|