Friday, October 28th, 2005

Swato: Opensource Ajaxian Java Web Framework

Category: Toolkit

<p>Zhijie Chen of Japan has created a new opensource framework for building Ajaxian web applications called Swato.

With the help of this framework, you just need to register your Java class (Model) at the server side (Spring), and do all of your View/Control at client side via JavaScript.

To build an application you:

  • Configure Swato
  • Build a POJO based service class
  • Register the class as a service
  • Use the service

Code Example Using the Service

var swatoEngine = new Swato.Engine('RPCServlet');

window.onload = function () {
	new Ajax.Updater('banner','banner.html');
	var languageCatcher= new Swato.Select('language_select');
	swatoEngine.callAndCatch(languageCatcher,'countryList',
					'getLanguageOptions',[]);
}

function changeLanguage(languageCode){
	var autoSuggestCatcher = new AutoSuggestControl('country');
	swatoEngine.callAndCatch(autoSuggestCatcher,'countryList',
				'getCountryList',[languageCode]);
}

Demos

Related Content:

Posted by Dion Almaer at 3:09 am
1 Comment

+++--
3.4 rating from 14 votes

1 Comment »

Comments feed

Thank you for the post.

A little CORRECTION:
Zhijie Chen is a Chinese but no Japanese.

Comment by ZhijieChen — October 28, 2005

Leave a comment

You must be logged in to post a comment.