Skip to content

Instantly share code, notes, and snippets.

@christiangoudreau
Created November 11, 2011 16:39
Show Gist options
  • Save christiangoudreau/1358470 to your computer and use it in GitHub Desktop.
Save christiangoudreau/1358470 to your computer and use it in GitHub Desktop.
Ensure Injected
public class web implements EntryPoint {
private final ClientGinjector ginjector = GWT.create(ClientGinjector.class);
@Override
public void onModuleLoad() {
// This is required for Gwt-Platform proxy's generator
DelayedBindRegistry.bind(ginjector);
ginjector.getResources().style().ensureInjected();
ginjector.getBootStrapper().init();
}
}
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:with field="res" type="com.quebecpass.web.client.resources.Resources" />
<ui:with field="nameTokens" type="com.quebecpass.web.client.place.NameTokens" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment