Remove ALL CSS from GWT

79 views
Skip to first unread message

Alexander Orlov

unread,
Aug 19, 2011, 10:57:13 AM8/19/11
to google-we...@googlegroups.com
Even if you don't specify any specific theme in the *.gwt.xml some CSS directives are always inserted into the app. How can I specify that GWT should not insert any single line of CSS into the app?

Alexander Orlov

unread,
Aug 19, 2011, 8:43:33 PM8/19/11
to google-we...@googlegroups.com
Using
RootPanel.get().add(app);
instead of
RootLayoutPanel.get().add(app);

...was the solution. Eventually you should add
<inherits name="com.google.gwt.user.theme.standard.StandardResources"/>
to your *.gwt.xml as described here.
     

Y2i

unread,
Aug 19, 2011, 9:52:05 PM8/19/11
to google-we...@googlegroups.com
This is probably a coincidence.  RootPanel and RootLayoutPanel serve different purposes.

Sudhakar Abraham

unread,
Aug 22, 2011, 7:36:11 AM8/22/11
to Google Web Toolkit

Change the property in gwt.xml file as follows.

In the Project.gwt.xml file do not inherit the css file.
comment as follows <!-- <inherits
name='com.google.gwt.user.theme.standard.Standard'/> -->

Hope it helps.

S. Abraham
www.DataStoreGwt.com

Alexander Orlov

unread,
Aug 22, 2011, 8:01:33 AM8/22/11
to google-we...@googlegroups.com
On Mon, Aug 22, 2011 at 1:36 PM, Sudhakar Abraham <s.ab...@datastoregwt.com> wrote:

Change the property in gwt.xml file as follows.

In the Project.gwt.xml file do not inherit the css  file.
comment as follows <!-- <inherits
name='com.google.gwt.user.theme.standard.Standard'/> -->

...is supposed to work only if you are using "non-Layout" widgets, i.e. RootPanel instead of RootLayoutPanel. If you use it with RLP some layout-related CSS properties still remain.

Fortunately you can override RootLayoutPanel's defaults with your own CSS values. 
Reply all
Reply to author
Forward
0 new messages