ActionElements can execute an action on request. The request is made by
the client or user of the ActionElement, which is usually the parent element.
Typically, ActionElement modify global objects or the instance of the parent
element by setting the values of some properties or by calling some methods.
ActionElements might also call some static methods.
Design-note: ActionElements don't return any value. the ActionElement-interface
is otherwise similar to the ValueElement-interface. The two interfaces could
have been put under a common interface, but in that case the action should
have returned value. it was essential that action-elements don't return
a value. a null-value could have been used for signalling "no value", but
that approach works only if we don't use null-values otherwise..
Elements with the 'action'-attribute are compiled into ActionElements. However,
also elements without the attribute may end up as ActionElements.
Copyright (C) 2004 Timo Laitinen
author: Timo Laitinen since: JICE-0.10 |