Hi all, I have a Country class with two-letter ISO3166 country codes, together with a select component in a form. The problem now is the sort order of these countries, default is the order within the enum, but that doesn't work very well within a multi-language site. I want the sort order alphabetically descending by the label of the countries in the corresponding property file for the current locale. What is the recommended way to achieve this?
------------------ Country.java: ------------------ public enum Country { AE, /* UNITED ARAB EMIRATES */ AR, /* ARGENTINA */ AT, /* AUSTRIA */ } ------------------ Page.java: ------------------ @Property private Country country; ------------------ Page.tml: ------------------ <t:select t:id="country" blankOption="always"/> ------------------ country.properties: ------------------ country.AE=United Arab Emirates country.AR=Argentina country.AT=Austria ------------------ country_de.properties: ------------------ country.AE=Vereinigte Arabische Emirate country.AR=Argentinien country.AT=Österreich -- View this message in context: http://tapestry.1045711.n5.nabble.com/Select-component-and-sorting-order-tp5714478.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org