[OmniFaces utilities] The
getActiveInstances() method returns all active CDI managed bean instances in the given CDI managed bean scope. The map key represents the active CDI managed bean instance and the map value represents the CDI managed bean name, if any. - this utility method exist in OmniFaces 2.0, but it was fixed to work as expected in OmniFaces 2.1 SNAPSHOT.Method:
import
javax.enterprise.context.RequestScoped;
...
Map<Object,
String> activeRequestScopedBeans =
Beans.getActiveInstances(RequestScoped.class);
import javax.enterprise.context.SessionScoped;
...
Map<Object,
String> activeSessionScopedBeans = Beans.getActiveInstances(SessionScoped.class);





 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


 Ajax
Ajax Beans
Beans Callbacks
Callbacks Components
Components Events
Events Exceptions
Exceptions Faces
Faces Facelets
Facelets JSON
JSON Hacks
Hacks State
State     JNDI
JNDI Platform
Platform Utils
Utils Messages
Messages MapWrapper
MapWrapper Reflection
Reflection Renderers
Renderers ResourcePaths
ResourcePaths XML
XML Servlets
Servlets Arrays
Arrays Converters
Converters Dates
Dates Numbers
Numbers Objects
Objects Strings
Strings
 
 <h:inputText/>
<h:inputText/>          ZEEF JSF Beginner's Guide
ZEEF JSF Beginner's Guide       JSF 2 Tutorials at www.mkyong.com
JSF 2 Tutorials at www.mkyong.com      JavaServer Faces (JSF) Tutorial
JavaServer Faces (JSF) Tutorial      

















 
 Postări
Postări
 
 

Niciun comentariu :
Trimiteți un comentariu