Tuesday, September 29, 2009

Google Web Toolkit RPC serialization error and Collections.EMPTY_LIST (Collections.emptyList())

Well, heading made my day.
Actually java.util.Collections.EMPTY_LIST and java.util.Collections.emptyList() are not GWT-serializable and will cause SerializationException being thrown on attempt to transfer them across the wire.

Use new ArrayList() instead

Monday, September 14, 2009

Integrating Google Analytics and GWT

Problem is that GWT apps are single-paged by their nature; they are applications. Though, having way to track user's action would be good. No one cancelled custom-written stuff, but mature analytics tools such as Google Analytics would give you much more functionality.

Fast, and easy. Have not tried it yet - need to get rid of some pending work.
here's link to google groups discussion - http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/61912b40a2ca7b2a/

Shortly, you just load analytics script to your single-paged site as external script, and then manually call 'log' method from them to create records in analytics database. Pretty easy, huh?
Nice thread on GWT and SEO on GWT group.
You might have seen Ian Bambury on the web, with his http://examples.roughian.com/#Home GWT example site.

In this thread Ian describes way his application is indexed. Think this is cool, especially real-world experience in long-running gwt seo :)

Thanks Ian.

Friday, September 4, 2009

Design anti-patterns

I have not had so much fun for some time.
If you know what are design patterns - take some time to read through the document, I am sure you'll notice many wel-known real-life examples of this.

That's where life meets theory: