|
GettingStarted
Project initalizationAdd the .jar file to your classpath and add this line to your .gwt.xml <inherits name="com.googlecode.restfulgwt.RestfulGwt"/> Your entry point should extend "TokenManagedEntryPoint" and should not override onModuleLoad(). In your entrypoint constructor, declare all root resources this way : add((TokenResourceDeclaration)GWT.create(MyResource1.class)); add((TokenResourceDeclaration)GWT.create(MyResource2.class)); Add "implements HasTokenHandling" on your resources and you're good to go ! Feel free to browse or checkout the demo source code in the repository : here About typesReturn typeIf the return type is not void, the result will be appended to the root panel. If it is a String type, you can specify a @Produce if it should be treated as HTML data or plain text, you can return a Widget too. Field initialization
@UiField
@PathParam("name")
TextBox tbHello;and you TextBox will be filled with the value from the token. Current Limitation :
You can now check Examples |
► Sign in to add a comment