Defines the methods required for a component whose value can be
modified by the user.
When a component implementing this interface is rendered, the value
output is (in order):
- The "submitted value" if non-null.
- The component's "local value" if non-null.
- The result of evaluating the value-binding expression with name
"value" for this component.
Rendering the submitted value if non-null allows a component to redisplay
a user-provided value when validation fails for the component. The
submitted value is usually just the plain string extracted from the
servlet request. During successful validation of the component, the
submitted value is converted to an appropriate datatype, and stored as
the component's "local value", and then the "submitted value" is
immediately reset to null.
Rendering the "local value" if non-null allows a component to redisplay
a page when validation fails for some other component; the model can't
be updated unless all components have passed validation. This
also allows components to work without a defined "value" value-binding
expression. When all components validate, the update model phase runs;
all components with "value" value-bindings store the "local value" into
the specified property then reset their local value to null.
Rendering the value-binding expression named "value" allows components
to display data from the user's model classes. This is the most common
way a component's renderer obtains the value to display.
see Javadoc of JSF Specification for more.
author: Manfred Geiler (latest modification by $Author: mbr $) version: $Revision: 512227 $ $Date: 2007-02-27 13:25:16 +0100 (Di, 27 Feb 2007) $ |