To think a bit about the right JSON output before starting to develop saves you a lot of headache afterwards. To get my data as JSON without any manual object conversion, I decided to use the Spring Framework. My controller allows me to define the view by just calling the name of the bean (defined in views.xml) together with the model (java.util.Map).

At the beginning, I was using the spring-json library, which was good enough for my first tests. After a while I realized that my performance was going down, because I haven’t had any control of what should be populated or not. On the spring-json page under feature it is mentioned that FlexJSON will be included shortly…

Continue Reading »

While I was developing in GWT-Ext and juggling with the data coming from the database back and force, I found the way of preparing data (JSON) for the module a little bit pain in the neck. When thinking about a better and more efficient solution I came across with Spring and its view resolver. The view controller takes over the type of the output and you don’t need to do anything at all.

In this example I would like to show the basics to setup the viewResolver with a JSON output, based on the example I wrote before.

First, we need to include our Spring libraries so we can run this example. The libraries we need, are shown in Continue Reading »

After seen a good example of how to save data into the database. I decided to write an example how to fetch data coming from a database.

Continue Reading »

This time I would like to post the Ant script I’m using for deploying my Gwt-Ext application. The main thing what is required for deploying it successfully, is basically the path to the GWT source files.

The Login application as shown in this figure before running the build file:

Continue Reading »

After my post of how to setup a proper Gwt-Ext application in Eclipse, I would like to show how to develop a simple “Login” application using CypalStudio plugin.

Instead of showing a basic HelloWorld, I would like to do a more realistic example. I decided to do a Login functionality, but If you are interested in a simple HelloWorld, here is good example.

Allright…

First, we click on our project with the right mouse and select New->Other->Cypal Studio->Module

Continue Reading »

This example should present, how to set up a proper application using “gwt-ext” and “cypal studio”.

At the beginning I should start to explain how a GWT application works, since it’s different from other web development what I worked so far.

The development is being done completely in java, except some stylesheet and one html file. Basically, the whole operational procedure is being executed on one page (could be your index.html).

Continue Reading »