You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/11/10 01:54:56 UTC
DO NOT REPLY [Bug 32131] -
'bundle' attribute of 'msg' tag not working.
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=32131>.
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=32131
'bundle' attribute of 'msg' tag not working.
niallp@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
------- Additional Comments From niallp@apache.org 2004-11-10 00:54 -------
There is no trick, its not been implemented in Struts yet. Commons Validator
was updated to add the bundle attribute - but Struts doesn't do anything with
them.
Theres really two parts to this issue.
1) The bundle attribute associated with the args.
2) The bundle attribute associated with messages.
The Struts validator resolves the args (see o.a.s.v.Resources) and that needs
changing to use the appropriate bundle if specified.
The actual messages themselves are resolved by the Struts tags - i.e.
<html:errors> or <html:messages>. Since ActionMessage doesn't have a bundle
attribute theres currently no way to pass that through to tell the tag which
bundle to use. Currently all you can do is use the bundle attribute on those
tags - its fine if all your errors on a particular page come from a single
bundle, but not if they don't.
I see two ways to resolve this:
1) Pass the bundle attribute along with the message key in the ActionMessage
2) Have the struts validator resolve the message and pass the actual message in
the ActionMessage and add something like a resource=false attribute to indicate
the ActionMessage has already been resolved.
I'm going to close this as its a duplicate of an existing enhancement request
(Bug 21760).
Niall
*** This bug has been marked as a duplicate of 21760 ***
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org