DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=21760>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=21760

Add support for non-default resource bundles in validation





------- Additional Comments From [EMAIL PROTECTED]  2004-11-11 16:17 -------
Although bundle was added to the Msg class in commons validator, there was 
still no way to actually retrieve the Msg from a Field (only the Msg's key) and 
find out what its bundle was.

I have just applied a patch to Commons Validator which now provides access to a 
field's Msg objects (and also addded getter/setter for the Msg's 'resource' 
property).

IMO the solution needs to also address the following:

1) Take account of the bundle attribute for messages in validator.
2) Take account when a message's 'resource' property is set to false
3) Retain compatibility for people who are using the <html:errors> tag with a 
bundle attribute quite happily.
4) Resolve the inconsistency between the <html:errors> and <html:javascript> 
tags with the former having a bundle attribute for messages and the later not. 

I'm attaching a new patch, similar to yours which I believe does the above. 
Unfortunately we will need a release of Commons Validator whith the changes I 
just made before this can be applied.

Niall

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to