What you want sounds like what I do with com.google.gwt.user.client.ui.ListBox. Look at addItem(java.lang.String item, java.lang.String value). The item is what the user sees (the language) while value contains what you're interested in (the country code).
On Oct 12, 9:44 am, gerry <[email protected]> wrote: > Hi all, > > I am building an application where the user needs to specify the name > of a work of art, like a poem or song, and I need him to specify its > language. I want to make it possible that he can choose the language > from a drop-down list, and I also want to know the three character > code of the ISO-639-2 standard for the language he selects so that I > can store it in my database (like Eng for English, Ger for German > etc.). > > Is there a standard way I can select language in gwt using a drop down > menu and mapping them to the ISO standard code? > > I also want to do the same thing for selecting countries through a > drop-down menu and mapping them to their ISO-3166 code (FR for France, > DE for Germany etc.). > > Thanks a lot, > Gerasimos -- 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.
