Thank You ! spent a lot of time struggling with this,and now it works ! as you suggested, I added this:
this.resources.style().ensureInjected(); and it worked ! this line is same as before homeLink.setStyleName(this.resources.style().homeLink()); do you think there is a better way to do this ? this "resources.style().ensureInjected()" sitting on one line, on its own, seems a bit suspecious, is this the correct way of using css resources inside client bundle ? everytime we want to use it, call ensureInjected() ? - and related to this, I have two fundamental questions: using ClientBundle this way, to access CSS styles: 1- does this mean, we no longer have to include a CSS file in our main .html file ? 2- in development when we need to manipulate the styles associated with widgets, for example when a notification area needs to change colors, red/ green/yellow for warning messages, is it a good idea to manipulate CSS through ClientBundle ? 3- if we don't use features such as @define, @... , and stick to css, is there a still valid case to use ClientBundle for the sake of having access to CSS, to manipulate widgets that way ? Thank You -- 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.
