public class JsfViewFactoryCreator extends java.lang.Object implements ViewFactoryCreator
ViewFactoryCreator
implementation for creating instances of a JSF-specific ViewFactory
.Constructor and Description |
---|
JsfViewFactoryCreator() |
Modifier and Type | Method and Description |
---|---|
ViewFactory |
createViewFactory(Expression viewIdExpression,
ExpressionParser expressionParser,
ConversionService conversionService,
BinderConfiguration binderConfiguration,
org.springframework.validation.Validator validator,
ValidationHintResolver resolver)
Create a view factory capable of creating
View objects that can render the view template with the
provided identifier. |
java.lang.String |
getViewIdByConvention(java.lang.String viewStateId)
Get the default id of the view to render in the provided view state by convention.
|
public ViewFactory createViewFactory(Expression viewIdExpression, ExpressionParser expressionParser, ConversionService conversionService, BinderConfiguration binderConfiguration, org.springframework.validation.Validator validator, ValidationHintResolver resolver)
ViewFactoryCreator
View
objects that can render the view template with the
provided identifier.createViewFactory
in interface ViewFactoryCreator
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 usepublic java.lang.String getViewIdByConvention(java.lang.String viewStateId)
ViewFactoryCreator
getViewIdByConvention
in interface ViewFactoryCreator
viewStateId
- the view state id