Head-first-ajax-for-liferay is a project mainly written in Java, it's free.
Head First Ajax examples implemented with Alloy in Liferay Portal