From: Anthony E. <me...@an...> - 2002-04-11 16:42:27
|
I have just checked in some changes to FormProc which will hopefully improve the way error messages are specified. I have added support for resource bundles as per the request of Emmanuel Venisse. The new changes allow error and message tags to include a resource attribute which specifies the name of the resource bundle to use. If a resource attribute is specified, then the value of the XML element will be the resource key. Here is an example: <validator type="class" classname="org.formproc.example.UsernameValidator"> <error resource="org.formproc.example.ExampleResourceBundle">username.error</error> </validator> This should work for both error messages and form element messages. The old system for specifying error messages in the configuration will also work if no resource bundle is specified. I have also updated this to allow a error or message with no lang attribute. If specified this value will be used if there is no error or message for the specified locale. As always, comments and questions are welcome. Sincerely, Anthony Eden |