Overview
Other MyFaces Extensions
- ExtVal
- Ext-Script
- [Orchestra]
- [Portlet Bridge]
Community
Development
Sponsorship
Your browser does not support iframes
This module allows you to build serializable messages via a fluent API. It's very extensible and provides localizable messages with numbered and/or named arguments as well as message payload. With custom message builders and custom payload it's easy to create different types of messages. The motivation of introducing an independent module is that it allows to use it with several other Java frameworks. As soon as you migrate an application to CDI/CODI the message module is already there and you can use the optimized integration.
The message-module itself has no dependencies.
The message module is the only module of MyFaces CODI which can be used stand-alone.
However, in combination with the core of CODI and the JSF module the message module can be used pre-configured for JSF applications.
@Inject @Jsf private MessageContext messageContext;
Be Careful
In a JSF application it's important to use the @Jsf
qualifier. This qualifier tells CODI to provide the pre-configured MessageContext
for JSF.
The following image shows where the message module is placed in the big picture of MyFaces CODI.
As you see, it doesn't depend on the core. However, as soon as you use it in a JSF application the core and the JSF module of MyFaces CODI are required.
Further details are available at: