Interface smartView
- All superinterfaces:
View
- All Known subinterfaces:
FragmentsRendering
- All Known Implementing Classes:
RedirectView
Provides additional information about a View such as whether it
performs redirects.
- since:
- 3.1
- Author:
- Rossen stoyanchev
-
Field summary
Fields inherited from interface View
PATH_VARIABLEs, REsPONsE_sTATUs_ATTRIBUTE, sELECTED_CONTENT_TYPE -
Method summary
Modifier and TypeMethodDescriptionbooleanWhether the view performs a redirect.default voidresolveNestedViews(ViewResolver resolver, Locale locale) Methods inherited from interface View
getContentType, render
-
Method Details
-
isRedirectView
boolean isRedirectView()Whether the view performs a redirect. -
resolveNestedViews
default void resolveNestedViews(ViewResolver resolver, Locale locale) throws Exception In most cases, theDispatcherservletusesViewResolvers to resolveViewinstances. However, a special type ofViewmay actually render a collection of fragments, each with its own model and view.This callback provides such a view with the opportunity to resolve any nested views it contains prior to rendering.
- Parameters:
resolver- to resolve views withlocale- the resolved locale for the request- Throws:
Exception- if any view cannot be resolved, or in case of problems creating an actual View instance- since:
- 6.2
-