Is it fine to have multiple tags with different channel on a page, for me it never worked. Is it a good use of prime push, Or is there any alternative to receive server push messages from multiple channels on a page. Here is piece of sample code what i have tried
<h:form>
<p:socket channel="/pushMessages/#{session.id}">
<p:ajax event="message" update=":navigation-form"/>
</p:socket>
<p:socket channel="/pushMessages/cart/#{session.id}">
<p:ajax event="message" update=":message-form"/>
</p:socket>
</h:form>
Yes this works for me without a problem in PrimeFaces 6.2 (keep in mind that p:push
is deprecated and the JSF 2.3 websockets is advised
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With