Custom PropertyResolver
implementation that adds support for DynaBean
property access to the facilities of the default PropertyResolver
provided by JavaServer Faces.
This class implements the following specific rules:
PropertyResolver
instance that we are wrapping.DynaActionForm
, and the requested property name is map
, maintain compatibility with the way that JSP and JSTL expressions can access this property: getValue()
will return the result of calling getMap()
on the base object.setValue()
will throw an exception, because the map of property values is a read-only property of the DynaActionForm
class.isReadOnly()
returns true
.getType()
returns the Class
object for java.util.Map
.DynaBean
, provide access to its named properties as follows: getValue()
will return the result of calling get()
on the base object.setValue()
will call set()
on the base object.isReadOnly()
returns false
(because the DynaBean APIs provide no mechanism to make this determination, but most implementations will provide mutable properties).getType()
returns the Class
object for the underlying dynamic property.PropertyResolver
that we are wrapping.
|
|