Class JsfViewFactoryCreator

java.lang.Object
org.springframework.faces.webflow.JsfViewFactoryCreator
All Implemented Interfaces:
ViewFactoryCreator

public class JsfViewFactoryCreator extends Object implements ViewFactoryCreator
A ViewFactoryCreator implementation for creating instances of a JSF-specific ViewFactory.
Author:
Jeremy Grelle
  • 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 creating View objects that can render the view template with the provided identifier.
      Specified by:
      createViewFactory in interface ViewFactoryCreator
      Parameters:
      viewIdExpression - an expression that resolves the id of the view to render
      expressionParser - an optional expression parser to use to resolve view expressions
      conversionService - an optional conversion service to use to format text values
      binderConfiguration - information on how the rendered view binds to a model that provides its data
      validator - a global validator to invoke
      resolver - a custom ValidationHintResolver to use
      Returns:
      the view factory
    • getViewIdByConvention

      public String getViewIdByConvention(String viewStateId)
      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 interface ViewFactoryCreator
      Parameters:
      viewStateId - the view state id
      Returns:
      the default view id