org.kuali.rice.krad.web.bind
Class UifServletRequestDataBinder

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 org.kuali.rice.krad.web.bind.UifServletRequestDataBinder
All Implemented Interfaces:
org.springframework.beans.PropertyEditorRegistry, org.springframework.beans.TypeConverter

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

Override of ServletRequestDataBinder in order to hook in the UifBeanPropertyBindingResult which instantiates a custom BeanWrapperImpl.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
protected static org.apache.log4j.Logger LOG
           
 
Fields inherited from class org.springframework.web.bind.WebDataBinder
DEFAULT_FIELD_DEFAULT_PREFIX, DEFAULT_FIELD_MARKER_PREFIX
 
Fields inherited from class org.springframework.validation.DataBinder
DEFAULT_AUTO_GROW_COLLECTION_LIMIT, DEFAULT_OBJECT_NAME, logger
 
Constructor Summary
UifServletRequestDataBinder(Object target)
           
UifServletRequestDataBinder(Object target, String name)
           
 
Method Summary
 void bind(javax.servlet.ServletRequest request)
          Performs data binding from servlet request parameters to the form and then calls postBind(request).
protected  org.springframework.validation.AbstractPropertyBindingResult getInternalBindingResult()
          Allows for the setting attributes to use to find the data dictionary data from Kuali
protected  View getViewFromPreviousModel(UifFormBase form)
           
 ViewService getViewService()
           
 void initBeanPropertyAccess()
          Allows for a custom binding result class.
 void initDirectFieldAccess()
          Disallows direct field access for Kuali
 
Methods inherited from class org.springframework.web.bind.ServletRequestDataBinder
addBindValues, closeNoCatch
 
Methods inherited from class org.springframework.web.bind.WebDataBinder
bindMultipart, bindMultipartFiles, checkFieldDefaults, checkFieldMarkers, doBind, getEmptyValue, getFieldDefaultPrefix, getFieldMarkerPrefix, isBindEmptyMultipartFiles, setBindEmptyMultipartFiles, setFieldDefaultPrefix, setFieldMarkerPrefix
 
Methods inherited from class org.springframework.validation.DataBinder
applyPropertyValues, bind, checkAllowedFields, checkRequiredFields, close, convertIfNecessary, convertIfNecessary, findCustomEditor, getAllowedFields, getAutoGrowCollectionLimit, getBindingErrorProcessor, getBindingResult, getConversionService, getDisallowedFields, getErrors, getObjectName, getPropertyAccessor, getPropertyEditorRegistry, getRequiredFields, getSimpleTypeConverter, getTarget, getTypeConverter, getValidator, isAllowed, isAutoGrowNestedPaths, isIgnoreInvalidFields, isIgnoreUnknownFields, registerCustomEditor, registerCustomEditor, setAllowedFields, setAutoGrowCollectionLimit, setAutoGrowNestedPaths, setBindingErrorProcessor, setConversionService, setDisallowedFields, setExtractOldValueForEditor, setIgnoreInvalidFields, setIgnoreUnknownFields, setMessageCodesResolver, setRequiredFields, setValidator, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.log4j.Logger LOG
Constructor Detail

UifServletRequestDataBinder

public UifServletRequestDataBinder(Object target)

UifServletRequestDataBinder

public UifServletRequestDataBinder(Object target,
                                   String name)
Method Detail

initBeanPropertyAccess

public void initBeanPropertyAccess()
Allows for a custom binding result class.

Overrides:
initBeanPropertyAccess in class org.springframework.validation.DataBinder
See Also:
DataBinder.initBeanPropertyAccess()

getInternalBindingResult

protected org.springframework.validation.AbstractPropertyBindingResult getInternalBindingResult()
Allows for the setting attributes to use to find the data dictionary data from Kuali

Overrides:
getInternalBindingResult in class org.springframework.validation.DataBinder
See Also:
DataBinder.getInternalBindingResult()

initDirectFieldAccess

public void initDirectFieldAccess()
Disallows direct field access for Kuali

Overrides:
initDirectFieldAccess in class org.springframework.validation.DataBinder
See Also:
DataBinder.initDirectFieldAccess()

bind

public void bind(javax.servlet.ServletRequest request)
Performs data binding from servlet request parameters to the form and then calls postBind(request).

Overrides:
bind in class org.springframework.web.bind.ServletRequestDataBinder
Parameters:
request -

getViewFromPreviousModel

protected View getViewFromPreviousModel(UifFormBase form)

getViewService

public ViewService getViewService()


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.