I try to execute the same example of notify on the demo page (http://www.primefaces.org/showcase/push/notify.xhtml), but I cant executed. There is no any exception but the faces message doesnt trigged. There is no any FacesMessage.
Code: Select all
public void send() {
EventBus eventBus = EventBusFactory.getDefault().eventBus();
System.out.println("summary:" + summary + "|detail:" + detail);
System.out.println("publishing...");
eventBus.publish(CHANNEL, new FacesMessage(StringEscapeUtils.escapeHtml(summary), StringEscapeUtils.escapeHtml(detail)));
System.out.println("published successfully...");
}
summary:aa|detail:ss
publishing...
published successfully...
I work with primefaces-5.0.jar, atmosphere-runtime-2.2.0-RC3.jar
I checked these sites, but cant find any help...
http://atmosphere-framework.2306103.n4. ... 58748.html
http://atmosphere-framework.2306103.n4. ... 50751.html
my web.xml:
Code: Select all
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>Push Servlet</servlet-name>
<servlet-class>org.primefaces.push.PushServlet</servlet-class>
<init-param>
<param-name>org.atmosphere.cpr.broadcasterCacheClass</param-name>
<param-value>org.atmosphere.cache.UUIDBroadcasterCache</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>Push Servlet</servlet-name>
<url-pattern>/primepush/*</url-pattern>
</servlet-mapping>