I followed the demo step by step but at the end i cant make it work.
I can track that the ManagedBean method is called (when pressing a button)
and the @PushEndpoint onMessage() method is called as well. But somehow
it cant make a connection to the client endpoint.
Im running on Glassfish 4.0, Primefaces 5.0 and Atmosphere 2.1.3
Code: Select all
<h:body>
<f:view locale="en" encoding="UTF-8">
<p:growl widgetVar="growl" showDetail="true" />
<h:form id="mainForm" prependId="false" enctype="multipart/form-data"
rendered="true">
<p:commandButton actionListener="#{testBean.testMethod}"></p:commandButton>
<p:commandButton rendered="#{testBean.showSth}"
id="testBtn" widgetVar="testBtnW"> slkdjflskjdf</p:commandButton>
</h:form>
<p:socket channel="/some">
<p:ajax event="message" update="mainForm:testBtn" />
</p:socket>
</f:view>
</h:body>