I am having trouble getting the bean validator to work. Right now, nothing is validated. Maybe its not loading the validator.xml. How can I verify?
Here's the config.
<bean id="beanValidator" class="org.springmodules.validation.bean.BeanValid ator">
<property name="configurationLoader" ref="configurationLoader"/>
</bean>
<bean id="configurationLoader" class="org.springmodules.validation.bean.conf.load er.xml.DefaultXmlBeanValidationConfigurationLoader ">
<property name="resource" value="classpath:/validation/validation.xml"/>
<property name="elementHandlerRegistry" ref="handlerRegistry"/>
</bean>
And of course, the validation.xml
<form name="feeSetup" >
<field property="fee.type" depends="required" >
<arg key="error.required" />
</field>
</form>


Reply With Quote