org.riotfamily.forms.controller
Class FormContextFactory
java.lang.Object
org.riotfamily.forms.controller.FormContextFactory
- All Implemented Interfaces:
- InitializingBean, ApplicationContextAware, MessageSourceAware, ResourceLoaderAware
public final class FormContextFactory
- extends Object
- implements MessageSourceAware, ResourceLoaderAware, ApplicationContextAware, InitializingBean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormContextFactory
public FormContextFactory()
setMessageCodesResolver
public void setMessageCodesResolver(AdvancedMessageCodesResolver resolver)
- Sets the
AdvancedMessageCodesResolver
to be used. If not
set, a RiotMessageCodesResolver
will be used by default.
setMessageSource
public void setMessageSource(MessageSource messageSource)
- Sets the
MessageSource
that is used to look up labels and
error messages.
- Specified by:
setMessageSource
in interface MessageSourceAware
- See Also:
MessageSourceAware
setResourceLoader
public void setResourceLoader(ResourceLoader resourceLoader)
- Sets the
ResourceLoader
that is used to load the FreeMarker
templates.
- Specified by:
setResourceLoader
in interface ResourceLoaderAware
- See Also:
ResourceLoaderAware
setApplicationContext
public void setApplicationContext(ApplicationContext applicationContext)
- Specified by:
setApplicationContext
in interface ApplicationContextAware
setResourcePath
public void setResourcePath(String resourcePath)
setTemplateRenderer
public void setTemplateRenderer(TemplateRenderer templateRenderer)
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interface InitializingBean
createFormContext
public FormContext createFormContext(HttpServletRequest request,
HttpServletResponse response)
createFormContext
public FormContext createFormContext(MessageResolver messageResolver,
String contextPath,
String formUrl)