Class JsfViewFactoryCreator
java.lang.Object
org.springframework.faces.webflow.JsfViewFactoryCreator
- All Implemented Interfaces:
ViewFactoryCreator
A
ViewFactoryCreator
implementation for creating instances of a JSF-specific ViewFactory
.- Author:
- Jeremy Grelle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateViewFactory
(Expression viewIdExpression, ExpressionParser expressionParser, ConversionService conversionService, BinderConfiguration binderConfiguration, org.springframework.validation.Validator validator, ValidationHintResolver resolver) Create a view factory capable of creatingView
objects that can render the view template with the provided identifier.getViewIdByConvention
(String viewStateId) Get the default id of the view to render in the provided view state by convention.
-
Constructor Details
-
JsfViewFactoryCreator
public JsfViewFactoryCreator()
-
-
Method Details
-
createViewFactory
public ViewFactory createViewFactory(Expression viewIdExpression, ExpressionParser expressionParser, ConversionService conversionService, BinderConfiguration binderConfiguration, org.springframework.validation.Validator validator, ValidationHintResolver resolver) Description copied from interface:ViewFactoryCreator
Create a view factory capable of creatingView
objects that can render the view template with the provided identifier.- Specified by:
createViewFactory
in interfaceViewFactoryCreator
- Parameters:
viewIdExpression
- an expression that resolves the id of the view to renderexpressionParser
- an optional expression parser to use to resolve view expressionsconversionService
- an optional conversion service to use to format text valuesbinderConfiguration
- information on how the rendered view binds to a model that provides its datavalidator
- a global validator to invokeresolver
- a custom ValidationHintResolver to use- Returns:
- the view factory
-
getViewIdByConvention
Description copied from interface:ViewFactoryCreator
Get the default id of the view to render in the provided view state by convention.- Specified by:
getViewIdByConvention
in interfaceViewFactoryCreator
- Parameters:
viewStateId
- the view state id- Returns:
- the default view id
-