DO NOT REPLY [Bug 25971] - Cannot retrieve all MessageResources messages

2004-01-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25971

Cannot retrieve all MessageResources messages





--- Additional Comments From [EMAIL PROTECTED]  2004-01-08 05:25 ---
I extended PropertyMessageResources and provided a method to get at the 
underlying Properties, but of course all the messages are in random order 
because it's backed by a Hashtable.  A partial solution would be to wrap the 
Properties with a TreeMap, but that would sort the message keys, not the actual 
messages.

Probably the best approach to dealing with the sorting problem would be to wrap 
the Properties with a new class that sorts on the natural order of the Map's 
values instead of its keys, then submit the new class to the Apache Jakarta 
Commons Collections group, since they don't seem to have such a class yet.  It 
could be called SortedValueMap or TreeValueMap or whatever.

Of course, there's still the need to roll this all back into Struts' 
MessageResources.

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



DO NOT REPLY [Bug 25971] - Cannot retrieve all MessageResources messages

2004-01-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25971

Cannot retrieve all MessageResources messages





--- Additional Comments From [EMAIL PROTECTED]  2004-01-08 05:15 ---
Created an attachment (id=9848)
Partial solution by extending PropertyMessageResources

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