Tag Archives: Design Pattern

In a previous post I described the benefits of MVP architecture (you can see this post). Now I will try to explain how to implement that design pattern, inspired from Google’s GWT, with JavaScript.

I would assume, for this demo, that you are familiar with the basics of jQuery.

What is MVP?

Model-View-Presenter is a design pattern which separates the code for a specific widget/functionality to three sections:


In which the data model for the widget is defined.


In which the logic behind the UI is handled, with UI events, data visualization and other UI centric logic.


Where the logic behind the functionality of the widgets rests, such as data manipulation, data storing and loading, application events, etc…

Read More

Nearing the end of 2009 I switched jobs to a new location, where I was tasked with building a new web application. The weapons of choice was Google’s, very new to the time, GWT 2.0.

This was my first exposure to Google’s Java-Compiled-JavaScript, and I was hesitant.

Google Web Toolkit (GWT/ˈɡwɪt/) is an open source set of tools that allows web developers to create and maintain complex JavaScript front-end applications in Java.

GWT emphasizes reusable, efficient solutions to recurring Ajax challenges, namely asynchronous remote procedure calls, history management, bookmarkinginternationalization and cross-browser portability.

Wikipedia – GWT

Read More