Skip to content

Instantly share code, notes, and snippets.

@jasonlemay
Created May 14, 2015 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonlemay/1bc16f187fc26d1ab136 to your computer and use it in GitHub Desktop.
Save jasonlemay/1bc16f187fc26d1ab136 to your computer and use it in GitHub Desktop.
Getting started with CSS (GSS) in GWT
// src/main/java/com/company/project/client/application/contact/ContactView.ui.xml
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'>
<ui:with field="resources" type="com.company.project.client.resources.AppResources"/>
<ui:with field="pageResources" type="com.company.project.client.resources.PageResources"/>
<div class="{pageResources.contact.contact}">
<h1>My contact page!</h1>
<p class="{resources.style.class_from_style_gss}">
This is a beautiful contact form.
</p>
<p class="{pageResources.homepage.homepage_big_title}">
Hey look, I can also use a class from the homepage, even though I should probably don't do this, right?
</p>
<form class="{pageResources.contact.contact_form}">
<input type="email" placeholder="your email please" />
<input type="submit" value="Go!" />
</form>
</div>
</ui:UiBinder>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment