The following features are supported:
When a request is submitted, first the {@link #readFromRequest(FormContext)} method of all widgetswill be called so that they can read their value(s). Next, the {@link #validate()} method willbe called. Doing this in two steps allows the validation to compare values between widgets. See also the method {@link Form#process(FormContext)}.
A Widget is created by calling the createInstance method on the a {@link WidgetDefinition}. A Widget holds all the data that is specific for a certain use of the widget (its value, validationerrors, ...), while the WidgetDefinition holds the data that is static accross all widgets. This keeps the Widgets small and light to create. This mechanism is similar to classes and objects in Java. @version $Id: Widget.java 155210 2005-02-24 17:02:09Z sylvain $
A Widget is created by calling the createInstance method on the a {@link WidgetDefinition}. A Widget holds all the data that is specific for a certain use of the widget (its value, validationerrors, ...), while the WidgetDefinition holds the data that is static accross all widgets. This keeps the Widgets small and light to create.
render(OutputData)
), event handling (via event(Path, InputData
). update(InputData)
which gives the Widget the data from the request as InputData. event(Path, InputData)
is invoked. process
signaling that now only process()
can be called within this request.
@author "Toomas Römer" A base class for widgets, providing:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|