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
" 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
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
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" ?
-
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 ?
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 ?
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
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