> 1)  The <module> XML has a <stylesheet /> node.  Can you have multiple
> nodes in there?  I realize this won't help with being able to
> I need to have the ability to dynamically override CSS classes for a
> component.  I'm fairly new to GWT so I'm hoping someone has done
> something similar.

Why don't you just change the CSS class on the widget in question? You
can use setStylePrimaryName to completely change the CSS class or use
addStyleDependentName to add "-<string>" to the existing style on the
element.

> dynamically override but was just wondering...

Yes, you can add multiple stylesheets in the GWT module. You can also
load them in your HTML/other format page that loads the GWT JS.



--
Arthur Kalmenson



On Tue, Feb 10, 2009 at 9:31 AM, Lupo <[email protected]> wrote:
>
> Hi -
> I need to have the ability to dynamically override CSS classes for a
> component.  I'm fairly new to GWT so I'm hoping someone has done
> something similar.  I searched the group and didn't find anything
> relevant ( well, not in the first 5 pages of search results,
> anyway ).  I have also done some wider searching and have found the
> following:
>
> 1)  The <module> XML has a <stylesheet /> node.  Can you have multiple
> nodes in there?  I realize this won't help with being able to
> dynamically override but was just wondering...
> 2)  The documentation mentions changing styles at design time in one
> file, but nothing about multiple .css files (potential solution).
>
> Question:
> Does it make sense to dynamically pre-pend a <style /> element into
> the DOM in order to take advantage of the "C"ascading of CSS?  Would
> the browsers be able to handle that?
>
> Thanks in advance for your attention.  I'm sincerely hoping the
> solution is easier than in JSF.
> -Lupo
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to