I have been seeing this on a lot of pages since upgrading an app to 2.0.2
ValidatorResources.getForm(511) | Form 'null' not found for locale 'en' (line 511 because I upgraded to 1.3.1 commons-validator) It turns out this this message occurs when the validator.jsp is loaded via the include directive on many of the jsp pages. commons-validator looks for this on the jsp page to determine the name of the forrm: <v:javascript formName="foo" cdata="false" dynamicJavascript="true" staticJavascript="false"/> In the validator.jsp there is no formName, so it prints out the above message about not finding the form name. Viewing this thread I looked at the applicationContext-validation.xml and see that the bean is configured a bit differently. <bean id="beanValidator" class="org.springmodules.validation.commons.DefaultBeanValidator"> <property name="validatorFactory" ref="validatorFactory"/> </bean> If I add the 'UseCodeAsDefaultMessage' property I get some other issues. Namely that 1.3.1 doesn't support it looks like. David Whitehurst wrote: > > Disregard this. The Spring bean for the resource support was not > registered. > > David > > > <bean id="messageSource" > class="org.springframework.context.support.ResourceBundleMessageSource"> > <property name="basename" value="ApplicationResources"/> > <property name="useCodeAsDefaultMessage" value="true"/> > </bean> > > David Whitehurst wrote: >> >> I'm not quite sure why this doesn't work. But I get missing locale >> property replacements using the AppFuse label tag but fmt:message works. >> ... >> >> ??userForm.username??? (using AppFuse tag) >> >> "First Name" using fmt:message >> >> I've been over and over everything and can't figure this one out. It's >> probably the same reason I cannot get error.required to show the message >> with the {0} replacement arg0. >> >> I wonder why fmt:message works, it finds user.socialsecurity=Social >> Security >> >> Thanks, >> >> David >> > > -- View this message in context: http://www.nabble.com/Locale-issues-using-Spring-MVC-tp11414806s2369p23565290.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net