From the course: Learning GWT

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

UiBinder resources: Part 1

UiBinder resources: Part 1

From the course: Learning GWT

Start my 1-month free trial

UiBinder resources: Part 1

- [Instructor] In a previous section, we briefly touched on the UI style element. This element allows you to define CSS styling directly inside your UI. Even though it is convenient to include the style rules right alongside the UI, in most real world applications, there is an external style sheet that needs to be included. You can still do that with the UI style tag. I'll demonstrate. But this time, we need to include an attribute called source, and give it the location of where our resource, or external style sheet, resides. Note, for this section, I've included a My Resources folder located in the client package, with a few resources, like a CSS file, PDF, image, and text file, that we may use in our application. To reference the external CSS file, that source is what we're going to put into the src attribute. And it will be My Resources/external.css. And that's how you would include an external style sheet. But note, we have an error on the page. Both UI style elements are being…

Contents