How can I use MessageFormat if I need to provide more...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Zukowski
Posted On:   Friday, January 26, 2001 12:31 PM

How can I use MessageFormat if I need to provide more than 10 parameters?

Re: How can I use MessageFormat if I need to provide...

Posted By:   Alexander_Valdez  
Posted On:   Tuesday, February 27, 2001 10:14 AM

The short answer is you can't. A review of the source for the MessageFormat class shows that it checks (arbitrarily, IMO) that the parameter number is between 0 and 9, throwing a NumberFormatException otherwise.


The longer answer that some extra work is required to chop up your source text, use multiple patterns and arrays, and concatenate the resulting parts.

About | Sitemap | Contact