2 Replies Latest reply on May 22, 2008 10:16 AM by Kishore Peravali

    Ajax4JSF: XML Parsing Error

    Kishore Peravali Newbie

      We use XHTML standard.We have a declared a custom namespace in our application.
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"
      xmlns:test="testURL">

      We use apache apache myfaces and ajax4jsf-1.1.1. When a component that has test:hover="no" as an atrribute, is re-rendered a4j is throwing the following error.
      Parse Error: XML Parsing Error: Reference to undeclared namespace prefix: 'test'.

      Any input is greatly appreciated.

      Thanks

        • 1. Re: Ajax4JSF: XML Parsing Error
          Ilya Shaikovsky Master

          ajax4jsf as standalone library will not be supported anymore. Use one of the latest Rich Faces releases 3.1.5 GA or 3.2.0 SR1 or 3.2.1 CRs

          • 2. Re: Ajax4JSF: XML Parsing Error
            Kishore Peravali Newbie

            Thanks for the suggestion. Now i have tried to use Rich Faces 3.1.5. My look and feel got corrupted. How do i configure the app, not to use the Skinning provided by rich faces. For now i would just like to have the ajax capabilities from Rich Faces 3.1.5
            I am using
            Myfaces 1.1.6
            Tomohawk 1.1.7
            JDK1.4
            ajax4jsf-1.1.1

            Now i have replaced ajax4jsf-1.1.1 with richfaces-api-3.1.5.GA.jar, richfaces-impl-3.1.5.GA.jar and richfaces-ui-3.1.5.GA.jar.

            in my web.xml..
            <context-param>
            <param-name>org.richfaces.LoadStyleStrategy</param-name>
            <param-value>NONE</param-value>
            </context-param>
            <context-param>
            <param-name>org.richfaces.SKIN</param-name>
            <param-value>NONE</param-value>
            </context-param>

            <filter-name>richfaces</filter-name>
            <filter-class>org.ajax4jsf.Filter</filter-class>

            <filter-mapping>
            <filter-name>ajax4jsf</filter-name>
            <url-pattern>/*</url-pattern>
            </filter-mapping>

            Your suggestions will be greatly appreciated

            Thanks