public class UifServletRequestDataBinder extends org.springframework.web.bind.ServletRequestDataBinder
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
LOG |
| Constructor and Description |
|---|
UifServletRequestDataBinder(Object target) |
UifServletRequestDataBinder(Object target,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(javax.servlet.ServletRequest request)
Performs data binding from servlet request parameters to the form, initializes view object, then calls
UifFormBase.postBind(javax.servlet.http.HttpServletRequest) |
protected org.springframework.validation.AbstractPropertyBindingResult |
getInternalBindingResult()
Allows for the setting attributes to use to find the data dictionary data from Kuali
|
protected View |
getViewByType(javax.servlet.ServletRequest request,
UifFormBase form)
Attempts to get a view instance by looking for a view type name in the request or the form and querying
that view type with the request parameters
|
protected View |
getViewFromPreviousModel(UifFormBase form)
Attempts to get a view instance based on the view id stored on the form (which might not be populated
from the request but remaining from session)
|
ViewService |
getViewService() |
void |
initBeanPropertyAccess()
Allows for a custom binding result class.
|
void |
initDirectFieldAccess()
Disallows direct field access for Kuali
|
addBindValues, closeNoCatchbindMultipart, bindMultipartFiles, checkFieldDefaults, checkFieldMarkers, doBind, getEmptyValue, getFieldDefaultPrefix, getFieldMarkerPrefix, isBindEmptyMultipartFiles, setBindEmptyMultipartFiles, setFieldDefaultPrefix, setFieldMarkerPrefixaddValidators, applyPropertyValues, bind, checkAllowedFields, checkRequiredFields, close, convertIfNecessary, convertIfNecessary, convertIfNecessary, findCustomEditor, getAllowedFields, getAutoGrowCollectionLimit, getBindingErrorProcessor, getBindingResult, getConversionService, getDisallowedFields, getErrors, getObjectName, getPropertyAccessor, getPropertyEditorRegistry, getRequiredFields, getSimpleTypeConverter, getTarget, getTypeConverter, getValidator, getValidators, isAllowed, isAutoGrowNestedPaths, isIgnoreInvalidFields, isIgnoreUnknownFields, registerCustomEditor, registerCustomEditor, replaceValidators, setAllowedFields, setAutoGrowCollectionLimit, setAutoGrowNestedPaths, setBindingErrorProcessor, setConversionService, setDisallowedFields, setExtractOldValueForEditor, setIgnoreInvalidFields, setIgnoreUnknownFields, setMessageCodesResolver, setRequiredFields, setValidator, validate, validateprotected static final org.apache.log4j.Logger LOG
public UifServletRequestDataBinder(Object target)
public UifServletRequestDataBinder(Object target, String name)
public void initBeanPropertyAccess()
initBeanPropertyAccess in class org.springframework.validation.DataBinderDataBinder.initBeanPropertyAccess()protected org.springframework.validation.AbstractPropertyBindingResult getInternalBindingResult()
getInternalBindingResult in class org.springframework.validation.DataBinderDataBinder.getInternalBindingResult()public void initDirectFieldAccess()
initDirectFieldAccess in class org.springframework.validation.DataBinderDataBinder.initDirectFieldAccess()public void bind(javax.servlet.ServletRequest request)
UifFormBase.postBind(javax.servlet.http.HttpServletRequest)
The view is initialized by first looking for the viewId parameter in the request. If found, the view is
retrieved based on this id. If the id is not present, then an attempt is made to find a view by type. In order
to retrieve a view based on type, the view request parameter viewTypeName must be present. If all else
fails and the viewId is populated on the form (could be populated from a previous request), this is used to
retrieve the view.
Note the view is not initialized for Ajax requests that perform partial page updates or dialog updates or no updates at all
bind in class org.springframework.web.bind.ServletRequestDataBinderrequest - - HTTP Servlet Request instanceprotected View getViewByType(javax.servlet.ServletRequest request, UifFormBase form)
request - request instance to pull parameters fromform - form instance to pull values fromprotected View getViewFromPreviousModel(UifFormBase form)
form - form instance to pull view id frompublic ViewService getViewService()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.