I am devloping an Application which is very Data-Driven. Therefore I like to get my View updated from the Database-Changes.
Now I try to open two Sockets with PrimeFacesPush but only one socket gets the event.
Here a small snippet for you.
Code: Select all
<h2>Pushtest</h2>
<h:outputLabel id="output1" value="#{someDataBean.data}"/><br/>
<h:outputLabel id="output2" value="#{otherDataBean.data}"/><br/>
<p:socket channel="/someData" >
<p:ajax event="message" update=":output1"/>
</p:socket>
<p:socket channel="/otherData" >
<p:ajax event="message" update=":output2"/>
</p:socket>