Skip to content

Instantly share code, notes, and snippets.

@jasonlemay
Created May 14, 2015 16:58
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/f3333808a2fe1dd64b77 to your computer and use it in GitHub Desktop.
Save jasonlemay/f3333808a2fe1dd64b77 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.pages.ContactResources"/>
<div class="{pageResources.style.contact}">
<h1>My contact page!</h1>
<p class="{resources.style.class_from_style_gss}">
This is a beautiful contact form.
</p>
<form class="{pageResources.style.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