0 Replies Latest reply on Aug 17, 2011 4:19 AM by Jesper Vrelits

    Problem render datatable using a4j:poll

    Jesper Vrelits Newbie

      I'm trying to auto refresh a simple log page by using a4j:poll:

       

      <a4j:poll id="pollId" interval="5000" render="pollId,logTablePanel" enabled="#{LogController.autoRefresh}"/>

       

      <a4j:outputPanel id="logTablePanel">

              <rich:dataTable id="logTableId" style="width: 100%" value="#{tLogController.logs}" var="log" keepSaved="false">

                  <rich:column style="color: #{log.level=='ERROR'?'red':'black'}; white-space: nowrap; border: none; vertical-align: top;">

                      <f:facet name="header">

                          <h:outputText value="#{dps_msgs['timestamp']}"/>

                      </f:facet>

                      <h:outputText value="#{log.timestamp}">

                          <f:convertDateTime pattern="#{dps_msgs['timestamp.format']}"/>

                      </h:outputText>

                  </rich:column>

              </rich:dataTable>

      </a4j:outputPanel>

       

      I've tried with and without a4j:outputPanel but it does not work.

       

      From a4j:log i get:

       

      error[10:14:53.076]: Received 'error@malformedXML' event from <span id=j_idt45:pollId ...>

      error[10:14:53.076]: [200] undefined: undefined

      info [10:14:53.076]: Received 'complete' event from <span id=j_idt45:pollId ...>

      info [10:14:55.529]: Received 'begin' event from <a id=j_idt41:turnOffId ...>

      info [10:14:55.670]: Received 'beforedomupdate' event from <a id=j_idt41:turnOffId ...>

      info [10:14:55.701]: Listing content of response changes element:

       

       

      Why do I get error@malformedXML. Is it a bug?

       

      Using Richfaces 4.0.0.Final