AFAIK, ensureInjected() on CssResource just calls getText() and injects a style element into the DOM using StyleInjector once and only once.
getText() is more interesting. Every CssResource text is converted into a series of string concatenations. The runtime evaluation @if (boolean-expr) { true-value } @else { false-value } turns into something like this: (boolean-expr)?(true-value):(false-value) it is then concatenated to the rest of the css resource. If you want reevaluation you need to call getText() again, and reinject into the DOM manually, without using the ensureInjected call. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/WXQat7N1vVQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.