Usecase: I want a dropdown with localized countryname, flag and phone prefix in a form.
I was hoping for some thoughts about best practice here. For android/ios it's simple, there are tons of libraries on github etc.
This is what i've come up with:
1. datasource. This means i have to localize it, which i guess i could, but if i understand that correctly, won't the datasource fmt-tags be parsed for every request?
2. put resources in a bundle so that it gets compiled into js, and then write code that created the data for the dropdown manually. I will explicitly have to create each item in the list, since each country name resource is a method in the gwt resource bundle
¨
3. Use Locale and create the list from there. Here i'd also have to manually call each country i want in the list. Also, here there are no phone prefixes.
Anybody done this? How did you do it?
Thoughts appreciated.
I was hoping for some thoughts about best practice here. For android/ios it's simple, there are tons of libraries on github etc.
This is what i've come up with:
1. datasource. This means i have to localize it, which i guess i could, but if i understand that correctly, won't the datasource fmt-tags be parsed for every request?
2. put resources in a bundle so that it gets compiled into js, and then write code that created the data for the dropdown manually. I will explicitly have to create each item in the list, since each country name resource is a method in the gwt resource bundle
¨
3. Use Locale and create the list from there. Here i'd also have to manually call each country i want in the list. Also, here there are no phone prefixes.
Anybody done this? How did you do it?
Thoughts appreciated.
Comment