-
1. Re: how many a4j:push we can use in one page?
bleathem Oct 9, 2013 2:17 PM (in response to liuliu)Can you post a facelet file demonstrating how you are using multiple push components in a single page?
-
2. Re: Re: how many a4j:push we can use in one page?
liuliu Oct 10, 2013 3:11 AM (in response to bleathem)1 of 1 people found this helpfulfinally, i find the problem, if I render a a4j:push, it does not work properly. in my code, the push is in a modalpanel, so it is re-rendered when opeing the modalpanel. when i put them on the main page, i dont have the problem anymore.
here is the code to show de problem, is it a bug?
==================================
<h:form>
<a4j:commandButton value="render" render="vidalpush"></a4j:commandButton>
<a4j:commandButton value="zone1" action="#{testBean.changeRenderZone('zone1')}" render="vidalpush"></a4j:commandButton>
<a4j:commandButton value="zone2" action="#{testBean.changeRenderZone('zone2')}" render="vidalpush"></a4j:commandButton>
<a4j:commandButton value="push" action="#{testBean.push('test')}"></a4j:commandButton>
</h:form>
<a4j:outputPanel id="vidalpush">
#{testBean.renderZone}
<a4j:push address="test" ondataavailable="alert('here')">
<a4j:ajax event="dataavailable" render="#{testBean.renderZone}"></a4j:ajax>
</a4j:push>
</a4j:outputPanel>
<a4j:outputPanel id="zone1" layout="block">
<h:outputText value="#{currentDate}" >
<f:convertDateTime pattern="HH:mm:ss"/>
</h:outputText>
</a4j:outputPanel>
<a4j:outputPanel id="zone2" layout="block">
<h:outputText value="#{currentDate}" >
<f:convertDateTime pattern="HH:mm:ss"/>
</h:outputText>
</a4j:outputPanel>
-
3. Re: how many a4j:push we can use in one page?
lfryc Oct 10, 2013 11:22 AM (in response to liuliu)1 of 1 people found this helpfulDoes one of following issues apply?
[RF-12543] a4j:push after ajax-rendered does not have its javascript included - JBoss Issue Tracker
[RF-12096] Push: there is delay between repeated subscribtion - JBoss Issue Tracker
-
4. Re: how many a4j:push we can use in one page?
liuliu Oct 10, 2013 12:02 PM (in response to lfryc)i think it is the second bug.
thanks