I found an issue in the push JavaScript.
I'm trying to send a push request from my backing bean
Code: Select all
RequestContext.getCurrentInstance().push("test", "update");
Code: Select all
PrimeFaces.websockets[channel].send(message);
Uncaught TypeError: Cannot call method 'send' of undefined
PrimeFaces.websockets[channel] gets created with the PrimeWebSocket widget but there is no <p:push/> element in my .xhtml file (yet), hence the error.
reproduced in Chromium 18 and Firefox 13
Thanx for fixing,
Matej