Converting Enums

2005-08-13 Thread Niall McLoughlin
n I need to 'internationalize' my app for other languages or want to display another 'name' instead of the enum name without messing with my model? What would be the best way to convert those display names if I stored the labels in a MessageResources file? Thanks very muc

Converting Enums

2005-08-13 Thread Niall McLoughlin
I hope this is the right place to ask this question. Let's say I have the following class (using jdk 1.5): public enum UserType { MANAGER, SUPERVISOR, USER; } I can build a List of these types to display in an options tag easily enough: public List getUserTypes() throws Exception { List i