[
https://jira.jboss.org/jira/browse/RF-8471?page=com.atlassian.jira.plugin...
]
Kai Gülzau updated RF-8471:
---------------------------
Summary: If a a4j:poll reRenders an id of a dataTable column polling
stops working (was: If a a4j:poll reRenders a id of a dataTable column polling stops
working)
Workaround Description:
Enclose column content with
<h:panelGroup id="col2">
dummy
</h:panelGroup>
and reRender this id instead.
Description:
If a a4j:poll reRenders an id of a dataTable column polling stops working.
Use this code to reproduce:
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<rich:dataTable value="#{agentBean.rows}">
<rich:column id="col">dummy</rich:column>
</rich:dataTable>
<a4j:region>
<a4j:form>
<a4j:poll id="poll" interval="10000"
reRender="poll, col" />
</a4j:form>
</a4j:region>
</ui:composition>
The response of the poll request is missing the polling script:
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title />
</head>
<body>
<table>
<tr>
<td class="rich-table-cell"
id="j_id0:0:col">dummy</td>
<meta name="Ajax-Update-Ids" content="j_id0:0:col,j_id3:poll"
/>
<meta id="Ajax-Response" name="Ajax-Response"
content="true" />
</tr>
</table>
<!-- MYFACES JAVASCRIPT -->
</body>
</html>
was:
If a a4j:poll reRenders a id of a dataTable column polling stops working.
Use this code to reproduce:
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<rich:dataTable value="#{agentBean.rows}">
<rich:column id="col">dummy</rich:column>
</rich:dataTable>
<a4j:region>
<a4j:form>
<a4j:poll id="poll" interval="10000"
reRender="poll, col" />
</a4j:form>
</a4j:region>
</ui:composition>
The response of the poll request is missing the polling script:
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title />
</head>
<body>
<table>
<tr>
<td class="rich-table-cell"
id="j_id0:0:col">dummy</td>
<meta name="Ajax-Update-Ids" content="j_id0:0:col,j_id3:poll"
/>
<meta id="Ajax-Response" name="Ajax-Response"
content="true" />
</tr>
</table>
<!-- MYFACES JAVASCRIPT -->
</body>
</html>
If a a4j:poll reRenders an id of a dataTable column polling stops
working
-------------------------------------------------------------------------
Key: RF-8471
URL:
https://jira.jboss.org/jira/browse/RF-8471
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-tables
Affects Versions: 3.3.2.SR1
Reporter: Kai Gülzau
If a a4j:poll reRenders an id of a dataTable column polling stops working.
Use this code to reproduce:
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<rich:dataTable value="#{agentBean.rows}">
<rich:column id="col">dummy</rich:column>
</rich:dataTable>
<a4j:region>
<a4j:form>
<a4j:poll id="poll" interval="10000"
reRender="poll, col" />
</a4j:form>
</a4j:region>
</ui:composition>
The response of the poll request is missing the polling script:
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title />
</head>
<body>
<table>
<tr>
<td class="rich-table-cell"
id="j_id0:0:col">dummy</td>
<meta name="Ajax-Update-Ids" content="j_id0:0:col,j_id3:poll"
/>
<meta id="Ajax-Response" name="Ajax-Response"
content="true" />
</tr>
</table>
<!-- MYFACES JAVASCRIPT -->
</body>
</html>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira