Currently, in my application, I use the following snippet to instantiate a timezone list for displaying in a \[code\]selectOneMenu\[/code\]:\[code\]@Named@ApplicationScopedpublic class MrBean { private String[] timezoneIDs; @PostConstruct public void init() { this.timezoneIDs = TimeZone.getAvailableIDs(); }}\[/code\]The good thing that I need & get from this list is the \[code\]Olson\[/code\] timezone ID that I can easily use with the \[code\]Joda-Time\[/code\] library. However, the list is very long, which consists of all the available Timezones there are in Java. In short, it's not user-friendly.
In the beginning, I'd like to display a list of \[code\]GMT\[/code\] timezones but I have no idea, for instance, what the corresponding Olson Timezone ID for \[code\]GMT+3\[/code\] is. As a consequence, I couldn't come up with a list of \[code\]selectItems\[/code\] for the \[code\]selectOneMenu\[/code\]. That's the reason why I had to use \[code\]TimeZone.getAvailableIDs();\[/code\].I'd be very grateful if you could suggest a library that can help me populate the Timezone list with \[code\]GMT\[/code\] labels and Olson Timezone ID values.