Forum Controls
Spotlight Features

The Rich Engineering Heritage Behind Dependency Injection

Andrew McVeigh takes us on a tour of the rich heritage behind dependency injection, what it represents, and tells us why its here to stay.

NetBeans 6: Matisse Updates

NetBeans 6 delivers great updates to the Matisse GUI builder. Spend a few minutes with Roman Strobl and get an expert briefing on what's new and what has changed.

Introduction to Groovy Part 3

In this, the third and final installation of Andres' Introduction to Groovy series, you learn about how Groovy handles variable numbers of arguments, named parameters, currying, and more about Groovy operators. Including, some new operators.

Easier Custom Components with Swing Fuse

Swing Fuse (actually just Fuse), is a framework designed to make it easier to create your own custom desktop components. In this article, Daniel Spiewak shows you how to get started and provides sample source code you can download.

Benchmark Analysis: Guice vs Spring

Willam Louth shows how he uses JXInsight Probes to investigate probable performance issues with code bases that he is not familiar with. He also highlights possible pitfalls in creating a benchmark, as well as in the analysis of results.
Replies: 1 - Pages: 1  
Threads: [ Previous | Next ]
  Click to reply to this thread Reply

ItsNat, Natural AJAX v0.2, new server-sent events technique

URL: Innowhere Software Services S.L.

At 5:31 AM on Dec 20, 2007, Jose María Arranz Santamaría wrote:

Released ItsNat v0.2

This release introduces some important new features:

* License text is updated to the final AGPL v3 version as published by GNU

http://www.fsf.org/licensing/licenses/agpl-3.0.html

* New “server-sent events” (events fired by the server) option. Events created by the server now can be dispatched directly to the server DOM with no browser interaction, following the W3C DOM Events standard including “capturing” and “bubbling” phases. This feature is unique in the server-centric web development world.

The source code is basically the same as the “using the browser” mode but in this new mode no synchronization is necessary, no JavaScript is used (no browser interaction), no network latencies, no new threads, events are processed faster and synchronously (this avoid the typical problems when testing an asynchronous AJAX application using the browser mode).

This new “server-sent events” mode introduces a new technique of functional web testing, in this case the view tested is the server DOM tree, but in ItsNat the browser DOM is a clone of the server.

* Server-sent events are applied to define bookmarks/permalinks in the ItsNat Feature Showcase, the AJAX based online demo. A new example shows how we can define bookmarks in an ItsNat AJAX application with three techniques: direct method and using "server-sent events" (with browser/without browser). In the server-sent events case, server events are dispatched simulating user actions to drive the application to the desired initial state.

Direct method and server-sent events without browser are “Google/Search engine friendly” because no JavaScript is needed (browser is not used). The Feature Showcase can be fully traversed now by search engines because any option has a permalink including tabs.

* Added a new AJAX timeout parameter when registering listeners, this value is used to stop an AJAX request too slow.

* New “unrender” methods added to renderer interfaces to clean used resources bound to markup before this markup is removed. The Feature Showcase "Free List Compound" example now uses this method.

* ContinueEvent, UserEvent, TimerEvent events are now W3C DOM Event extensions. They all inherit from W3C Event and processed by W3C EventListener listeners. The specific interface listeners have been removed. Now these events can be fired and dispatched from server as any other W3C DOM event (except TimerEvent).

* Changes on nested templates are now detected and parent templates are automatically reloaded.

* Added an online tutorial of how to build a basic ItsNat AJAX application using the core level of ItsNat. See “Support” section on the web.

* Some bug fixes, API changes and some internal refactoring. See Release Notes for more info in the “Download” section.

Links:
Web site
Download and Release Notes
Online Demo

What do you think about server-sent events? is useful for you?
1 . At 8:24 AM on Dec 20, 2007, Jose María Arranz Santamaría wrote:
  Click to reply to this thread Reply

Re: ItsNat, Natural AJAX v0.2, new server-sent events technique

To see some examples of AJAX bookmarking in action, click these links to load the Feature Showcase showing the "Explanation" tab of the "Bookmarking with AJAX" feature example already selected.

Using server-sent events using browser

Using server-sent events without browser

Direct method

Server-sent events simulate user actions: first clicking the "Bookmarking with AJAX" node on the feature tree then clicking the "Explanation" tab. Direct method uses custom Java code to drive the application to the desired initial state.

thread.rss_message