Country select component

Hello,

Is there a country selector component in Vaadim which returns ISO country code ?

Thank you.

The [tt]
Locale
[/tt] class in Java offers methods to get a list of all languages (as ISO 639 codes) and countries (as ISO 3166 codes) as well as their display names in different languages. See
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Locale.html
. You just need to put the country or language names into a container bound to a selection component. See an
example for selecting language
.

For another example (which doesn’t use the Java locale info), see the
ComboBox examples
in Sampler. Click
View Source
to see the source code. The ComboBox in the example uses the [tt]
getISO3166Container()
[/tt] helper in
ExampleUtil.java
, which creates the list of countries with their flags. The flags of the countries are included in Vaadin installation package.

Thank you very much ! It’s perfect !