O'Reilly logo

ExtGWT Rich Internet Application Cookbook by Odili Charles Opute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Client/server persistence

With the server environment configured and ready to deal with persistent objects, all that we need to do is give it some POJOs and perhaps arm ourselves with some JPA utility classes to make our work easier. For our recipe, we will create a grid that displays a list of students. The grid will retrieve the student records from the database using JPA and will support deleting and adding students. The add and delete operations on the grid will be persisted to the database using an RPC call that will use JPA.

How to do it...

Create a Student class, as usual it implements BeanModelTag (or the equivalent BeanModelMarker approach) and is Serializable, which are requirements for GXT data components and GWT's RPC respectively. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required