Friday, October 28th, 2005
Swato: Opensource Ajaxian Java Web Framework
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





3.4 rating from 14 votes
Thank you for the post.
A little CORRECTION:
Zhijie Chen is a Chinese but no Japanese.