28 May 2008

Three forms of AJAX: Solid, Liquid and Gas.

Looks like today AJAX concept have several different interpretations. According to the way applications use XMLHttpRequest, we can distinguish three main strategies of AJAX integration:

- Application-specific JavaScript that play a role of presentation controller on the client-side.
- Component oriented form
- Sub-page oriented form.

The first form refers to pure JavaScript developments. Solutions, implementing this form are the most flexible and powerful. They allow creating amazingly rich user interfaces. However, because of well-known limitations of JavaScript, they are quite hard to develop, debug and maintain. In addition, if multi browser support is required, you will probably have to develop a second AJAX-free version of your UI.

Component oriented form is both flexible and easy to maintain. Components do not necessarily expose JavaScript to developers, thus making their job easier. Auto-complete or auto-validating text fields, AJAX-aware trees and updatable data grids are typical examples of this approach. Its main disadvantage is the scope that rarely exceeds a single component (or set of similar components).

The third form is sub-page oriented form of AJAX integration. It refreshes "zones" on the page. While being less powerful then other forms, it is ideally suited for upgrading existing projects. It does not have visible scope limitations and preserves the original MVC architecture (presentation controller stays on the server side). Another advantage of this form is graceful degradation possibilities. The same presentation code can support both AJAX and traditional modes.

Unfortunately, all those forms seem to be mixed up under the same buzzword and compete with each other in developers’ minds.
[source : theserverside.com ]

20 May 2008


DISPLAY TAG - reduces pain of JSP development

JSP development can be a bit "cumbersome". A diffuse set of often fairly limited tag libraries abound. It's therefore surprising that the open source display: tag library has gotten so little attention. This gem is a mature render kit for all sorts of lists, ideal for overview-detail screens. It supports sorting, grouping, alternate row colors, export functions and decorators to fulfill most if not all of your display needs. And, it looks cool.
Also you can Export to Excel,CSV, and XML, sorting, and paging are available as simple configuration options. The look and feel can be controlled by adding custom styles. The libraries are well documented and very stable in my opinion. While I do agree that reading the entire list into memory may be unacceptable for some applications, this library works great when you are dealing with small to medium result sets

Visit this site for more information and download
http://displaytag.sourceforge.net/