java.lang.Object
jakarta.faces.application.Application
jakarta.faces.application.ApplicationWrapper
org.omnifaces.application.OmniApplication
- All Implemented Interfaces:
FacesWrapper<Application>
This OmniFaces application extends the standard Faces application as follows:
- Support for CDI in
Converters andValidators, so that e.g.@Injectand@EJBwork directly in Faces converters and validators without any further modification.
This application is already registered by OmniFaces' own faces-config.xml and thus gets
auto-initialized when the OmniFaces JAR is bundled in a web application, so end-users do not need to register this
application explicitly themselves.
- Since:
- 1.6
- Author:
- Radu Creanga <rdcrng@gmail.com>, Bauke Scholtz
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOmniApplication(Application wrapped) Construct a new OmniFaces application around the given wrapped application. -
Method Summary
Modifier and TypeMethodDescriptioncreateConverter(Class<?> forClass) If the there's a CDI managedConverterinstance available, then return it, else delegate toApplicationWrapper.getWrapped()which may return the Faces managedConverterinstance.createConverter(String converterId) If the there's a CDI managedConverterinstance available, then return it, else delegate toApplicationWrapper.getWrapped()which may return the Faces managedConverterinstance.createValidator(String validatorId) If the there's a CDI managedValidatorinstance available, then return it, else delegate toApplicationWrapper.getWrapped()which may return the Faces managedValidatorinstance.Methods inherited from class jakarta.faces.application.ApplicationWrapper
addBehavior, addComponent, addConverter, addConverter, addDefaultValidatorId, addELContextListener, addELResolver, addSearchKeywordResolver, addValidator, createBehavior, createComponent, createComponent, createComponent, createComponent, createComponent, evaluateExpressionGet, getActionListener, getBehaviorIds, getComponentTypes, getConverterIds, getConverterTypes, getDefaultLocale, getDefaultRenderKitId, getDefaultValidatorInfo, getELContextListeners, getELResolver, getExpressionFactory, getFlowHandler, getMessageBundle, getNavigationHandler, getProjectStage, getResourceBundle, getResourceHandler, getSearchExpressionHandler, getSearchKeywordResolver, getStateManager, getSupportedLocales, getValidatorIds, getViewHandler, getWrapped, publishEvent, publishEvent, removeELContextListener, setActionListener, setDefaultLocale, setDefaultRenderKitId, setFlowHandler, setMessageBundle, setNavigationHandler, setResourceHandler, setSearchExpressionHandler, setStateManager, setSupportedLocales, setViewHandler, subscribeToEvent, subscribeToEvent, unsubscribeFromEvent, unsubscribeFromEvent
-
Constructor Details
-
OmniApplication
Construct a new OmniFaces application around the given wrapped application.- Parameters:
wrapped- The wrapped application.
-
-
Method Details
-
createConverter
If the there's a CDI managedConverterinstance available, then return it, else delegate toApplicationWrapper.getWrapped()which may return the Faces managedConverterinstance.- Overrides:
createConverterin classApplicationWrapper
-
createConverter
If the there's a CDI managedConverterinstance available, then return it, else delegate toApplicationWrapper.getWrapped()which may return the Faces managedConverterinstance.- Overrides:
createConverterin classApplicationWrapper
-
createValidator
If the there's a CDI managedValidatorinstance available, then return it, else delegate toApplicationWrapper.getWrapped()which may return the Faces managedValidatorinstance.- Overrides:
createValidatorin classApplicationWrapper
-