Hi There,
I ran into this problem... using CSSResource and ClientBundle - GWT
waits for an oportunity to inject the CSS, the effect was that the
Selector was looking for something that wasn't there.
(from gwt
* docs)...
*
* * * * * * * * * * * * * * * * * * * * *
*
* DOM manipulation, especially manipulating style elements, has a
* measurable cost. In the interest of improving runtime
performance,
* StyleInjector does not manipulate the DOM immediately. Each
call to
* CssResource.ensureInjected() or StyleInjector.inject() will
append the
* contents to be injected into a buffer and use
Scheduler.scheduleFinally()
* to perform the DOM manipulation immediately before control
returns to the
* browser's event loop. This optimization makes the
* inject-in-static-initializer pattern operate without excessive
runtime
* cost.
*
* If it is necessary to have StyleInjector mutate the DOM
immediately,
* there are overloads of the inject() method which accept a
boolean
* parameter indicating that the DOM should be updated
immediately.
*
* * * * * * * * * * * * * * * * * * * * *
The fix was to use StyleInjector.inject(cssString, true)
Hope this helps.
Cheers,
Dave
> > > difference in how it doesn't work.- Hide quoted text -
>
> - Show quoted text -