| java.lang.Object org.springframework.validation.BindingResultUtils
BindingResultUtils | abstract public class BindingResultUtils (Code) | | Convenience methods for looking up BindingResults in a model Map.
author: Juergen Hoeller since: 2.0 See Also: BindingResult.MODEL_KEY_PREFIX |
getBindingResult | public static BindingResult getBindingResult(Map model, String name)(Code) | | Find the BindingResult for the given name in the given model.
Parameters: model - the model to search Parameters: name - the name of the target object to find a BindingResult for the BindingResult, or null if none found throws: IllegalStateException - if the attribute found is not of type BindingResult |
getRequiredBindingResult | public static BindingResult getRequiredBindingResult(Map model, String name)(Code) | | Find a required BindingResult for the given name in the given model.
Parameters: model - the model to search Parameters: name - the name of the target object to find a BindingResult for the BindingResult (never null ) throws: IllegalStateException - if no BindingResult found |
|
|