Instantly share code, notes, and snippets.

Embed
What would you like to do?
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