Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://jira.opensymphony.com/secure/ViewIssue.jspa?key=XW-53 Here is an overview of the issue: --------------------------------------------------------------------- Key: XW-53 Summary: Add MessageFormat support for text messages from xwork-message.properties Type: New Feature Status: Assigned Priority: Minor Project: XWork Versions: 1.0 Assignee: Patrick Lightbody Reporter: Brock Bulger Created: Wed, 11 Jun 2003 12:17 AM Updated: Wed, 11 Jun 2003 12:17 AM Environment: All Description: Many of the exceptions and error messages in XWork use objects in creating their output. The LocalizedTextUtil class should be enhanced to provide a method of getting the default text message formatted with any objects passed in. This functionality is necessary to start externalizing the error messages in XWork. The attached patch changes the following: - adds junit test for testing MessageFormat support in findDefaultText() - adds an implementation for using MessageFormat in findDefaultText() - corrects the spelling of "DEFAULT_REOUSRCE_BUNDLES" -> "DEFAULT_RESOURCE_BUNDLES" - corrects the spelling of "ACTION_EXECTION_ERROR" -> "ACTION_EXECUTION_ERROR" Here is the new method: /** * Returns a localized message for the specified text key, aTextName, substituting variables from the * array of params into the message. * @param aTextName The message key * @param params An array of objects to be substituted into the message text * @return A formatted message based on the key specified * @throws MissingResourceException */ public static String findDefaultText(String aTextName, Object[] params) throws MissingResourceException { return MessageFormat.format(findDefaultText(aTextName), params); } --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.opensymphony.com/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork