3 Replies Latest reply on Aug 28, 2008 11:47 PM by geggle

    Rerender dataTable - XML Parse error

    geggle

      I'm using RichFaces 3.2.1GA with Spring Web Flow 2.0.3.RELEASE.

      I've got a rich:dataTable inside a a4j:outputPanel which I'm causing to be re-rendered in a Spring Web Flow transition.

      I can see in the logs that rendering is occurring on the server side, and an AJAX response is being generated, which contains the required fragments.

      a4h:log shows that the required fragments are arriving in the client, however they cannot be parsed:

      error[15:39:31,992]: Parse Error: XML Parsing Error: Whitespace is not allowed at this location.
      Location: Line Number 2, Column 123:
      <script type="text/javascript" language="Javascript">function dpf(f) {var adp = f.adp;if (adp != null) {for (var i = 0;i < adp.length;i++) {f.removeChild(adp);}}};function apf(f, pvp) {var adp = new Array();f.adp = adp;var ps = pvp.split(',');for (var i = 0,ii = 0;i < ps.length;i++,ii++) {var p = document.createElement("input");p.type = "hidden";p.name = ps;p.value = ps[i + 1];f.appendChild(p);adp[ii] = p;i += 1;}};function jsfcljs(f, pvp, t) {apf(f, pvp);var ft = f.target;if (t) {f.target = t;}f.submit();f.target = ft;dpf(f);};</script>


      This to me looks very similar to https://jira.jboss.org/jira/browse/RF-2275.

      I'll see if I can create a test case which uses RichFaces and not Spring Web Flow, however, in the meantime, has anyone else seen this behaviour?[/url]