For some reasons you may need to have a comet support in some components.
Dependency
Mapfaces depends on grizzly-comet-webserver 1.8.6.3 .
MapFaces classes
Mapfaces is shipped with two classes to simplify the use of comet through your own JSF components.
org.mapfaces.comet.MFCometServlet
An abstract httpservlet which will handle the cometEngine for you.
org.mapfaces.comet.MFCometHandler
A sample CometHandler using an HttpServletResponse, it automaticly register/unregister
in the cometEngine when needed.
Usecase
Create your servlet and handler
MapServlet.java
Modify the web.xml to enable the servlet on the given path
web.xml
Add the buffer iframe that will receive events
myJSFRenderer.java
Labels