Sunday, May 29, 2011

CssResource + GWT widget

Hi, I'm trying to style a GWT widget with a CssResource (stored inside
a Client Bundle).

inside SampleView.css :


inside my view:

Label lblNewLabel = new Label("New label");
rmpnlTestPanel.add(lblNewLabel, new FormData("100%"));

The widget is rendered but not styled with the yellow color.

But, if I do:

The widget is now styled with the yellow color.

Even, if I add the


inside the CSS file included in my static html file, it works and the
label is styled with the color yellow
(<link type="text/css" rel="stylesheet" href="ImageViewer.css">)


You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment