postprocessRequestParameters(Map requestParameters) Method is called after parameters from a multipart request have been made accessible to request.getParameter calls, but
before request parameter values are used to instantiate and populate business objects.
Tries to format the provided value by passing it to a suitable
Formatter . Adds an ActionMessage to the ActionErrors
in the request if a FormatException is thrown.
Caution should be used when invoking this method. It should never be called prior to
PojoFormBase.populate(HttpServletRequest) because the cached request reference could be stale.
Delegates to
PropertyUtils.getPropertyType(ObjectString) to look up the property type for the provided keypath.
Caches the resulting class so that subsequent lookups for the same keypath can be satisfied by looking in the cache.
throws: NoSuchMethodException - throws: InvocationTargetException - throws: IllegalAccessException -
Populates the form with values from the current request. Uses instances of Formatter to convert strings to the Java types of
the properties to which they are bound. Values that can't be converted are cached in a map of unconverted values. Returns an
ActionErrors containing ActionMessage instances for each conversion error that occured, if any.
postprocessRequestParameters
public void postprocessRequestParameters(Map requestParameters)(Code)
Method is called after parameters from a multipart request have been made accessible to request.getParameter calls, but
before request parameter values are used to instantiate and populate business objects. Important note: parameters in the
given Map which were created from a multipart-encoded parameter will, apparently, be stored in the given Map as String[]
instead of as String.
Parameters: requestParameters -
Sets the Formatter class to use for a given keypath. This class will be used by the form instead of the one returned by calls
to
Formatter.getFormatter(Class) , which is the default mechanism.
setFormatterTypes
public void setFormatterTypes(Map formatterTypes)(Code)
Sets the formatterTypes attribute value.
Parameters: formatterTypes - The formatterTypes to set.
setUnconvertedValues
public void setUnconvertedValues(Map unconvertedValues)(Code)