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:
Here is a little explanation by Sylvain Wallez on how he added support to these new AJAX features to Cocoons Forms (CForms) module.
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.
0 Comments:
Post a Comment
<< Home