GWT and P.A.C.

June 14, 2008

I’m currently having the pleasure of developing a system using GWT, and it’s truly a step beyond typical Java web apps. The application is written in Java and hence you can use all your favourite IDEs, and it compiles to browser compatible Javascript which builds the page using the DOM directly. Meaning there’s no need to write any Javascript, or browser specific hacks.

I’ve learned a lot in the few months I’ve been working with it, but I thought I’d share a application design pattern that a previous team I was on used to develop Swing applications.

It’s called PAC (Presentation-Abstraction-Control), and it lends itself remarkably well to GWT applications.

I’m working on an example screencast which runs through the basics – hopefully this will be followed by some more in depth stuff.