Skip to main content

Home/ GWT - Samples/ Group items tagged tutorial

Rss Feed Group items tagged

Esfand S

GWT History | GWT Tutorials - 0 views

  • GWT handles the browser’s history stack by changing the hash, which is always preceded by the “#” symbol. While the JavaScript community call it a hash, GWT calls it a token, but regardless of what you call it, the token is how you are going to update the state of your web application.
  • The way in which you are going to capture changes in history is through the ValueChangeHandler. You will need to implement the ValueChangeHandler in your EntryPoint class,
  • The next step is to implement a function that will handle the logic of your state changes. So I am going to create a new method called onHistoryChange and I am going to pass in an argument called token. You will see why it is not recommended to write your logic in the onValueChange method in a moment.
  • ...2 more annotations...
  • The next step is to initialize the state of your web application using the history stack.
  • AJAX history logic can get confusing quickly, so you should have a good plan in place before writing the logic.
Esfand S

Google Web Toolkit (GWT 2.0) with Eclipse - Tutorial - 0 views

  • The standard approach in Java is to have separated projects for separate purposes. For example the domain model of the application is usually defined in its own project.
  • This chapter describes how you can make these projects available to the GWT compiler as modules.
  • GWT need to have access to the source files to compile them into Javascript code. If you add the project or the jar file to your GWT classpath then the Java compiler will not complain if you use the classes from the included project / jar but the GWT compiler will not be able to compile them. To make the Java files available to the GWT compiler you need to Create a gwt.xml file in the Java project / jar file which you want to use - This will instruct the GWT compiler to use the listed classes. Use the included library via the inherit definition If you are using a jar file you also need to include the source files in the jar
Esfand S

App Engine Fan: ServiceAsync? We don't need no stinking... - 0 views

  • Let's give it a try and build an browser-only app that sends a user query to Google base and displays the results in our application.
‹ Previous 21 - 40 of 108 Next › Last »
Showing 20 items per page