jMaki: AJAX Framework
By arungupta on Dec 13, 2006
jMaki framework, as explained earlier, decouples the presentation logic and underlying data using Widget Model, Client Services, Layouts and Client Runtime on the presentation layer (a.k.a. Client Side Components) and Server Side Runtime and XmlHttpProxy on the data layer (a.k.a. Server Side Components). The original intent of the project, wrapper for existing AJAX frameworks, is now served by the Widget Model.
After reading all the details, it's time to try some code. Before you begin, I recommend watching this screen cast that introduces you to jMaki and walks you through the steps of developing a web application using jMaki plug-in in NetBeans. Using the screen cast, here are the steps that I followed:
- Download NetBeans 5.5.
- Download the NetBeans Ajax Update Center Module. I preferred the update center module over the jMaki plug-in NBM file (NetBeans module) as that allows me to download any related goodies (such as Phobos plugin) as well.
- Install the downloaded plug-in following the instructions. The updated AJAX Update Center module screen shot is available here.
- Create the web application following the steps in screen cast.
- NetBeans 5.5 comes pre-bundled with Apache Tomcat 5.5.17. Go to the "Runtime" tab of NetBeans IDE (default short cut is Ctrl + 5), select the "Bundled Tomcat (5.5.17)", right click and select "Start" to start the Tomcat.
- Just for fun, I added the SuDoKu widget.
- Once the application is deployed (in step 4) then it can be viewed at
8084is the default port,
WebApplication1is context root of your application).
Sang Shin (of JavaPassion.com fame) has created a great hands on lab that walks you through the basics of using jMaki widgets. In a later blog, I plan to talk about how to create a jMaki widget from scratch and wrap a widget from one of the existing toolkits.Technorati: AJAX Sun Web 2.0 jMaki