On 12 nov, 11:59, Peter <[email protected]> wrote: > I'fe got a problem with using CSS classes in my masks definitions. > I implemented the CSS files as a resource (ClientBundle Interface) and > made it accessible for the java classes and the myview.ui.xml files > ( <ui:with field='res' type='xxx.xx.xx'/> ). > > Now when I reference this class: > <mywidget styleName="res.css.className"> > > .. two things happen: > - In the generated HTML the class name is replaced by a correct fully- > qualified-name generated by GWT. > - But this css-class is not available in the final, merged CSS file > (generated by GWT) that is sent to the browser. I can check this in > firebug. > > So the first functionality of the GWT compilation works fine, but the > second part doesn't. > Suprisingly: I'm integrated two CSS resources and the first one works > fine. Only the second one doesn't. I checked any differences between > those but couldn't find anything. > > Can anybody help? Why could this be? What could I propably have > missed?
Probably the ensureInjected() call on your CssResource, that will actually inject the CSS stylesheet into the document. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
