public abstract class BindingResultUtils extends Object
BindingResult.MODEL_KEY_PREFIX| Constructor and Description |
|---|
BindingResultUtils() |
| Modifier and Type | Method and Description |
|---|---|
static BindingResult |
getBindingResult(Map<?,?> model,
String name)
Find the BindingResult for the given name in the given model.
|
static BindingResult |
getRequiredBindingResult(Map<?,?> model,
String name)
Find a required BindingResult for the given name in the given model.
|
@Nullable public static BindingResult getBindingResult(Map<?,?> model, String name)
model - the model to searchname - the name of the target object to find a BindingResult fornull if none foundIllegalStateException - if the attribute found is not of type BindingResultpublic static BindingResult getRequiredBindingResult(Map<?,?> model, String name)
model - the model to searchname - the name of the target object to find a BindingResult fornull)IllegalStateException - if no BindingResult found