net.sf.springlayout.web.bind
Class LayoutServletRequestDataBinder

java.lang.Object
  extended by org.springframework.validation.DataBinder
      extended by org.springframework.web.bind.WebDataBinder
          extended by org.springframework.web.bind.ServletRequestDataBinder
              extended by net.sf.springlayout.web.bind.LayoutServletRequestDataBinder
All Implemented Interfaces:
org.springframework.beans.PropertyEditorRegistry

public class LayoutServletRequestDataBinder
extends org.springframework.web.bind.ServletRequestDataBinder

Temporary replacement for the core Spring ServletRequestDataBinder. Fixes a bug in Spring that has apparently been fixed in Spring 2.01 and 1.29.

Author:
Rob Monie

Field Summary
 
Fields inherited from class org.springframework.web.bind.WebDataBinder
DEFAULT_FIELD_MARKER_PREFIX
 
Fields inherited from class org.springframework.validation.DataBinder
DEFAULT_OBJECT_NAME, logger
 
Constructor Summary
LayoutServletRequestDataBinder(java.lang.Object target)
           
LayoutServletRequestDataBinder(java.lang.Object target, java.lang.String objectName)
           
 
Method Summary
protected  void checkFieldMarkers(org.springframework.beans.MutablePropertyValues mpvs)
          Overriden to remove any fieldMarkerPrefix prefixed fields from mpvs thus preventing exceptions on these fields when attempting to resolve their values against the command object
 
Methods inherited from class org.springframework.web.bind.ServletRequestDataBinder
bind, checkMultipartFiles, closeNoCatch, isBindEmptyMultipartFiles, setBindEmptyMultipartFiles
 
Methods inherited from class org.springframework.web.bind.WebDataBinder
doBind, getEmptyValue, getFieldMarkerPrefix, setFieldMarkerPrefix
 
Methods inherited from class org.springframework.validation.DataBinder
applyPropertyValues, bind, checkAllowedFields, checkRequiredFields, close, createErrors, findCustomEditor, getAllowedFields, getBeanWrapper, getBindingErrorProcessor, getErrors, getObjectName, getRequiredFields, getTarget, isAllowed, isIgnoreUnknownFields, registerCustomEditor, registerCustomEditor, setAllowedFields, setBindingErrorProcessor, setExtractOldValueForEditor, setIgnoreUnknownFields, setMessageCodesResolver, setRequiredFields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutServletRequestDataBinder

public LayoutServletRequestDataBinder(java.lang.Object target)

LayoutServletRequestDataBinder

public LayoutServletRequestDataBinder(java.lang.Object target,
                                      java.lang.String objectName)
Method Detail

checkFieldMarkers

protected void checkFieldMarkers(org.springframework.beans.MutablePropertyValues mpvs)
Overriden to remove any fieldMarkerPrefix prefixed fields from mpvs thus preventing exceptions on these fields when attempting to resolve their values against the command object

Overrides:
checkFieldMarkers in class org.springframework.web.bind.WebDataBinder
Parameters:
mpvs - the property values to be bound (can be modified)
See Also:
WebDataBinder.getFieldMarkerPrefix(), WebDataBinder.getEmptyValue(String, Class)


Copyright © 2005-2007 Spring Layout Team. All Rights Reserved.