1 Reply Latest reply on Jan 23, 2008 6:06 AM by Ilya Shaikovsky

    a4j xml parsing error  - Document is empty

    Dave Chen Master

      I used <a4j:support> for <t:selectOneMenu>, got XML parsing error for a4j response.

      The following is the response XML with matched elements removed for clarity. The two // before <![CDATA[ is not valid XML element. What might be the cause? How to work around this?

      I am using JBoss 4.0.5 and MyFaces 1.5 and tomahawk 1.7.

      Thanks for help.
      Dave

      <?xml version="1.0"?>

      //<![CDATA[ function getScrolling()
      {
      var x = 0; var y = 0;if (self.pageXOffset || self.pageYOffset)
      { x = self.pageXOffset;
      y = self.pageYOffset; }
      else if ((document.documentElement && document.documentElement.scrollLeft)||

      (document.documentElement && document.documentElement.scrollTop))
      {
      x = document.documentElement.scrollLeft;
      y = document.documentElement.scrollTop; }
      else if (document.body) {
      x = document.body.scrollLeft;
      y = document.body.scrollTop; }
      return x + "," + y; } ////]]>

      error[13:31:08,982]: Error parsing XML
      error[13:31:08,982]: Parse Error: Document is empty