InputMapper introduces another level of abstraction for the FxValue input
components.
When rendering the input component,
InputMapper.encode(FxValue) is
called and may wrap the given value in another object. For example, an ordinal
com.flexive.shared.value.FxLargeNumber like the ACL id may be mapped
to a
com.flexive.shared.value.FxSelectOne value for input rendering.
Note that the "output type" of the rendered UI control must be applicable to the
base FxValue type, since there is not "inverted" mapping (from input to base type).
For example, the select list IDs of an
SelectOneInputMapper must correspond to valid values of the base FxLargeNumber property.
Use
InputMapper.getInstance(FxProperty) to retrieve a new InputMapper for the given
structure property, which for example allows to select ACLs with a select list
instead of a numeric input field.
You may also implement your own input mapper and supply it to the FxValueInput component
or attach it to a search query node.
author: Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) version: $Rev: 181 $ |