What I did eventually for the languages is take a document like this:
http://www.loc.gov/standards/iso639-2/ISO-639-2_utf-8.txt, store it in
the war folder, and parse it line by line to get all languages and
their codes and put them in my drop down list.

For countries, I used the class that Prakash suggested above:
                ListBox country = new ListBox();
                DefaultLocalizedNames loc = new DefaultLocalizedNames();
                for (int i=0; i<loc.getSortedRegionCodes().length; i++) {
                        String code = loc.getSortedRegionCodes()[i];
                        country.addItem(loc.getRegionName(code), code);
                }


On 13 Οκτ, 20:32, Prakash <[email protected]> wrote:
> i dont know of any class, but i had seen locale list box in GWT showcase 
> :http://gwt.google.com/samples/Showcase/Showcase.html
> Source code of Showcase app is included in SDK. Check that out ..
>
> Hope this helps.
>
> -prakash m

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to