Johnny's Software Saloon

Weblog where I discuss things that really interest me. Things like Java software development, Ruby, Ruby on Rails, Macintosh software, Cocoa, Eclipse IDE, OOP, content management, XML technologies, CSS and XSLT document styling, artificial intelligence, standard document formats, and cool non-computing technologies.

My Photo
Name:
Location: Germantown, Maryland, United States

I like writing software, listening to music (mostly country and rock but a little of everything), walking around outside, reading (when I have the time), relaxing in front of my TV watching my TiVo, playing with my cat, and riding around in my hybrid gas/electric car.

Friday, April 28, 2006

Ajax forms support in Apache Cocoon 2.1.8

Cocoon is an open source Apache project that is an XML-oriented approach to web servers.

Most web servers serve plain static files, and use CGI or some embedded programming language (Java/JSP, VB/ASP, Ruby, Python, etc.) on the server to do interactive applications.

Cocoon takes a different approach. While it supports these things - Java, Javascript (with continuations capability), etc. - its focus is on XML. Rather than writing lumps of HTML content interwoven with procedural code - it uses XML documents to declaratively describe the page.

Cocoon enforces the separation between content and presentation. It supports web-style MVC. It offers declarative forms. It has its own template language: XSP. And now, starting with version 2.1.8 - it supports AJAX.

Cocoon's latest version includes support for AJAX in its forms language.

Cocoon is a great foundation for creating a web publishing system. It is suitable for creating a web portal, as it can already scape content from other web servers and understands most popular XML formats out of the box. Content management systems have already been written in it, proving some capabilities in that area as well.

Now, with support for AJAX - one of the hottest features on the web today - Cocoon has something else going for it to ensure its relevance on a more and more XML-oriented world.

Apache Cocoon project:
Starting with Cocoon 2.1.8, Cocoon Forms offers (mostly) transparent Ajax support. What this means is that when a form is submitted, this happens in the background and only those parts of the form that actually changed are updated on the page. Full-page reload only happens when interaction with the form is finished.


Here is a little explanation by Sylvain Wallez on how he added support to these new AJAX features to Cocoons Forms (CForms) module.

Technorati tags: , , , , ,

0 Comments:

Post a Comment

<< Home

Related pages & news