-
1. Re: problem with a4j:poll (Browser caching??) Please help!
fmarwede Oct 15, 2007 1:33 PM (in response to cbrautigam)Please post a code snippet and the versions of your current configuration.
First guess: if you use old versions, it could be a bug that is now fixed. -
2. Re: problem with a4j:poll (Browser caching??) Please help!
cbrautigam Oct 17, 2007 6:12 PM (in response to cbrautigam)FYI, I'm using ajax4jsf 1.1.1.
I did get partial success, but now I'm broke again. I had success when I added the id attribute on the a4j:poll tag. (i.e <a4j:poll id="poll")
So the following snippet seems to work, although that was just pure luck that I stumbled on to that....That seems pretty flaky to me, especially when the docs say that the id tag is optional:
<h:form id="tableForm">
<t:dataTable id="formTable" value="#{tableBean.rowDataModel}" var="row">
<t:columns value="#{tableBean.columnDataModel}" var="dataDesc">
<f:facet name="header">
<h:outputText value="#{dataDesc.displayName}"/>
</f:facet>
<h:outputText value="#{tableBean.columnValue}"/>
</t:columns>
</t:dataTable>
<a4j:poll id="poll" interval="10000" enabled="true" reRender="formTable"
action="#{tableBean.getData}"/>
</h:form>
Now I'm broke again because I had to put some check boxes on my data table: The following code doesn't work...You'll notice the only difference is the addition of the <t:column>....</t:column>. Having this in there the polling doesn't work again. No errors, no exceptions, just doesn't work. I also tried putting the a4j:poll tag in its own form and surrounding it with an a4j:region tag as was suggested on the online docs, but that doesn't help either.
<h:form id="tableForm">
<t:dataTable id="formTable" value="#{tableBean.rowDataModel}" var="row">
<t:column>
<f:facet name="header">
<h:outputText value="Select"/>
<h:selectManyCheckbox value="#{tableBean.selectedRows}">
<f:selectItem value="#{tableBean.selectItem}"/>
</h:selectManyCheckBox>
</t:column>
<t:columns value="#{tableBean.columnDataModel}" var="dataDesc">
<f:facet name="header">
<h:outputText value="#{dataDesc.displayName}"/>
</f:facet>
<h:outputText value="#{tableBean.columnValue}"/>
</t:columns>
</t:dataTable>
<a4j:poll id="poll" interval="10000" enabled="true" reRender="formTable"
action="#{tableBean.getData}"/>
</h:form>
Should I not be using Ajax4JSF1.1.1?