spring-framework / org.springframework.validation.support / BindingAwareModelMap

BindingAwareModelMap

open class BindingAwareModelMap : ExtendedModelMap

Subclass of org.springframework.ui.ExtendedModelMap that automatically removes a org.springframework.validation.BindingResult object if the corresponding target attribute gets replaced through regular Map operations.

This is the class exposed to handler methods by Spring MVC, typically consumed through a declaration of the org.springframework.ui.Model interface. There is no need to build it within user code; a plain org.springframework.ui.ModelMap or even a just a regular Map with String keys will be good enough to return a user model.

Author
Juergen Hoeller

Since
2.5.6

See Also
org.springframework.validation.BindingResult

Constructors

<init>

BindingAwareModelMap()

Subclass of org.springframework.ui.ExtendedModelMap that automatically removes a org.springframework.validation.BindingResult object if the corresponding target attribute gets replaced through regular Map operations.

This is the class exposed to handler methods by Spring MVC, typically consumed through a declaration of the org.springframework.ui.Model interface. There is no need to build it within user code; a plain org.springframework.ui.ModelMap or even a just a regular Map with String keys will be good enough to return a user model.

Functions

put

open fun put(key: String, value: Any): Any?

putAll

open fun putAll(from: Map<out String, *>): Unit