1 Reply Latest reply on Dec 5, 2007 10:04 AM by wbossons

    Ajax4jsf and xml parse error

    wbossons

      Help -- I believe that ajax4jsf is forcing parsing on all of my web site's pages. Everywhere that javascript is embedded on my pages, causes an XML parse error.

      I tried configuring the forceparse init param, but it doesn't seem to help. The only thing that helps is to keep my view handler in faces config, but then that prevents me from using ajax4jsf properly.

      My environment is Sun JSF RI 1.2 and tiles, it is a java ee5 application.

      Is there a way to stop this parse error? I have tried all of the javascript cdata and encoding tricks and that doesn't work. The only real solution that will be accepted by my team will be to prevent this strict xhtml parsing from occuring.

      Thanks in advance,

      ..\wb

        • 1. Re: Ajax4jsf and xml parse error
          wbossons

          Here are my web.xml settings ...

          web.xml

          ...
          <context-param>
          <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
          <param-value>org.apache.shale.tiles.TilesViewHandler</param-value>
          </context-param>
          ...

          <display-name>Ajax4jsf Filter</display-name>
          <filter-name>ajax4jsf</filter-name>
          <filter-class>org.ajax4jsf.Filter</filter-class>
          <init-param>
          <param-name>forceparser</param-name>
          <param-value>false</param-value>
          </init-param>

          <filter-mapping>
          <filter-name>ajax4jsf</filter-name>
          <servlet-name>Faces Servlet</servlet-name>
          REQUEST
          FORWARD
          INCLUDE
          </filter-mapping>
          ...
          The scenario is a custom component that writes a table with data and then outputs commandLinks to scroll through.

          I would appreciate a reply from someone who has gone through this before. I was instructed to begin posting here instead of the nabble Ajax4jsf forum, but I haven't seen any response on any of my 3 or 4 posts since then.

          Thanx,..\wb