Saturday, December 31, 2011

GWT i18n - locale set by property provider is not reflected at the client side

I am setting the locale value using the property provider( returns
value dynamically based on certain conditions). This class is called
every time the browser issues a new request. But the UI is not
rendered with the locale returned by the property provider. If the
property provider returns different values on each request, the value
returned for the first time by this class is used by GWT client side
code(onModuleLoad()).

If i use
LocaleInfo.getCurrentLocale().getLocaleName()

at the client code(onModuleLoad()), the first value returned by the
property provider is returned here.

Any help.

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

No comments:

Post a Comment