|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.validation.DataBinder org.springframework.web.bind.WebDataBinder org.springframework.web.bind.ServletRequestDataBinder org.kuali.rice.krad.web.bind.UifServletRequestDataBinder
public class UifServletRequestDataBinder
Override of ServletRequestDataBinder in order to hook in the UifBeanPropertyBindingResult which instantiates a custom BeanWrapperImpl.
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, 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 |
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 |
---|
protected static final org.apache.log4j.Logger LOG
Constructor Detail |
---|
public UifServletRequestDataBinder(Object target)
public UifServletRequestDataBinder(Object target, String name)
Method Detail |
---|
public void initBeanPropertyAccess()
initBeanPropertyAccess
in class org.springframework.validation.DataBinder
DataBinder.initBeanPropertyAccess()
protected org.springframework.validation.AbstractPropertyBindingResult getInternalBindingResult()
getInternalBindingResult
in class org.springframework.validation.DataBinder
DataBinder.getInternalBindingResult()
public void initDirectFieldAccess()
initDirectFieldAccess
in class org.springframework.validation.DataBinder
DataBinder.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.ServletRequestDataBinder
request
- - HTTP Servlet Request instanceprotected View getViewFromPreviousModel(UifFormBase form)
public ViewService getViewService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |