-
1. Re: <a4j:push> works only on reloading the browser
pujar.santosh Dec 20, 2010 8:46 AM (in response to pujar.santosh)Once again the code snippet is here:
<h:form id="index-form">
<a4j:push id="push"
eventProducer="#{notificationManagedBean.addListener}"
interval="2000" enabled="true" data="#{notificationManagedBean.notifications}"
oncomplete="notificationHandler.processNotifications(data);"/>
</h:form>
-
2. Re: <a4j:push> works only on reloading the browser
nbelaevski Dec 20, 2010 6:36 PM (in response to pujar.santosh)Hi Santosh,
Please check if there any error messages in browser log.
-
3. Re: <a4j:push> works only on reloading the browser
pujar.santosh Dec 20, 2010 10:36 PM (in response to nbelaevski)Hi Nick,
Thank you for replying.
I used firebug to see whether there are any error messages on browser but I didn't get any messages.
My notificationManagedBean is in application scope(faces-config.xml), is it ok..?? I am totally lost.. not getting any ideas
please help me...
-
4. Re: <a4j:push> works only on reloading the browser
pujar.santosh Dec 21, 2010 6:45 AM (in response to pujar.santosh)Hi All,
Finally, it worked....
I used <a4j:outputPanel> over <a4j:push> like below:
<a4j:outputPanel id="push-panel" ajaxRendered="true" style="display:none">
<h:form>
<a4j:push id="push"
eventProducer="#{notificationManagedBean.addListener}"
interval="2000"
data="#{notificationManagedBean.notifications}"
oncomplete="notificationHandler.processNotification(data);" limitToList="true"/>
</h:form>
</a4j:outputPanel>
I hope, If somebody is facing this issue, it may help...
Thank you
Santosh