Re: problem applying CSS classes defined in ClientBundle

2011-01-14 Thread Y2i
Personally I think - if a component does not share styles with other components, the styles should go to (GWT's NotificationMole, for example) - If there is a need to access these styles programmatically, GWT allows that. - If components share styles with each other, it's

Re: problem applying CSS classes defined in ClientBundle

2011-01-14 Thread zixzigma
" places the styles side by side with a composite" do you think it is better for the css styles to be side by side with the widget they are going to style, or it is better to centralize all the styles used in the app, in one single css file ? is one of the benefits of using clientbundle is that w

Re: problem applying CSS classes defined in ClientBundle

2011-01-14 Thread Y2i
Sorry if I wasn't clear. places the styles side by side with a composite and the composite's look does not depend on whether the styles are included in *.html or not. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this grou

Re: problem applying CSS classes defined in ClientBundle

2011-01-13 Thread zixzigma
Thank You, it all makes sense now. could you please clarify this: "The styles can be included in .html file, but having them in a bundle allows packing the styles together with your components (similar to using in *.ui.xml)" I am not sure I understand what you mean by "packing the styles" ? -

Re: problem applying CSS classes defined in ClientBundle

2011-01-13 Thread Y2i
On Thursday, January 13, 2011 11:15:52 PM UTC-8, zixzigma wrote: > > 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 ?

Re: problem applying CSS classes defined in ClientBundle

2011-01-13 Thread zixzigma
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 ?

Re: problem applying CSS classes defined in ClientBundle

2011-01-13 Thread Y2i
You might have forgotten to call ensureInjected() on your style (the one that extends CssResource) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe fr

problem applying CSS classes defined in ClientBundle

2011-01-13 Thread zixzigma
I am trying to use CSS classes defined in a ClientBundle to set the style for my widget. Unfortunately, the style is not applied. I use the very same ClientBundle to display an icon, and it works. I have put the style.css file within the same directory as MyResources.java clientbundle, they are