On Thursday, November 12, 2015 at 11:18:37 AM UTC+1, abdul wrote:
I have an application built on GWT with internationaliation. I want to load the GWT theme dynamically.For example:If (`localhost:8080/GWTApps/app.html`) then load this `<inherits name='com.google.gwt.user. theme.clean.Clean'/>` theme or else (`localhost:8080/GWTApps/app. html&local=ar`) load this `<inherits name='com.google.gwt.user. theme.clean.CleanRTL'/>`.How to achieve this dynamically any idea or thoughts on this?
GWT doesn't support conditional <inherits> or even <stylesheet> depending on binding properties, but you can inherit CleanResources (which doesn't "inject" the stylesheet) and inject the appropriate one yourself.
BTW, this is exactly what the Showcase sample does:
https://gwt.googlesource.com/gwt/+/2.7.0/samples/showcase/src/com/google/gwt/sample/showcase/Showcase.gwt.xml#7
https://gwt.googlesource.com/gwt/+/2.7.0/samples/showcase/src/com/google/gwt/sample/showcase/client/Showcase.java#237
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment