Event-listener models resort under SeparatedConcerns.

Event-listener models are abundant in the Java world. These provide listener classes---classes which a programmer can subclass (or interfaces that can be implemented) to provide custom implementations of special call-back methods. An instance of such a class (or an instance of an implementor of such an interface) can register its interest in events of a particular kind with a UI component, such as a button or selection box. If the UI component detects the occurrence of that kind of event, it will call the appropriate call-back method of the relevant listener instance, and so invoke the custom-supplied event handling code.

In web-based UIs, this means that one needs a programming-language-based model of the components on a page on the server (such as used with ComponentLibraries in the ViewTaxonomy). These should also be maintained in session scope, so that they can maintain their state between different requests from a particular browser.

Incoming requests are then handled in one of two ways:

EventListenerModels (last edited 2006-01-25 09:50:01 by IwanVosloo)