Overview
Other MyFaces Extensions
- ExtVal
- Ext-Script
- [Orchestra]
- [Portlet Bridge]
Community
Development
Sponsorship
Your browser does not support iframes
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
@Inject private FacesContext facesContext; |
Helper for detecting the current phase of the JSF request lifecycle.
Example:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
public class MyBean
{
@Inject
private JsfLifecyclePhaseInformation phaseInformation;
public void execute()
{
if (this.phaseInformation.isProcessValidationsPhase() || this.phaseInformation.isUpdateModelValuesPhase())
{
//...
}
}
}
|
In some projects users are using enums which allow e.g. a type-safe navigation. CODI provides a mechanism which goes beyond that. You can use classes which hosts a bunch of meta-data. One use-case is to use these special classes for type-safe navigation. Beyond that CODI allows to provide further meta-data e.g. page-beans which are loaded before the rendering process starts, type-safe security and it's planned to add further features to this mechanism.
...