4 Replies Latest reply on Oct 19, 2009 8:04 AM by Ilya Shaikovsky

    need some helps for a strange problem.

    liumin hu Master

      hi,

      sometimes the server returns a blank page after ajax action. I found this in the source code of generated html page .

      <meta name="Ajax-Update-Ids" content="" /><span id="ajax-view-state"><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id2" />
      </span><meta id="Ajax-Response" name="Ajax-Response" content="true" />
      


      can anyone give me some advices to find out from where comes this problem?

      thanks in advance

      liu

        • 1. Re: need some helps for a strange problem.
          Nick Belaevski Master

          Hi Liu,

          Probably filters are configured incorrectly. Post web.xml contents.

          • 2. Re: need some helps for a strange problem.
            liumin hu Master

            hi,

            i dont have this problem all the time. it is one of my clients report me this problem. I can not reproduce it. Could you give me some suggestions to find it out?

            here is the code about the filter in web.xml.


            <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>
            <init-param>
            <param-name>createTempFiles</param-name>
            <param-value>true</param-value>
            </init-param>
            <init-param>
            <param-name>maxRequestSize</param-name>
            <param-value>5000000</param-value>
            </init-param>

            <filter-mapping>
            <filter-name>ajax4jsf</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            REQUEST
            FORWARD
            INCLUDE
            </filter-mapping>

            <filter-name>extensionsFilter</filter-name>
            <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>

            <filter-mapping>
            <filter-name>extensionsFilter</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            REQUEST
            FORWARD
            INCLUDE
            </filter-mapping>
            <filter-mapping>
            <filter-name>extensionsFilter</filter-name>
            <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
            </filter-mapping>



            • 3. Re: need some helps for a strange problem.
              liumin hu Master



              Any suggestion is appreciated.

              thanks

              • 4. Re: need some helps for a strange problem.
                Ilya Shaikovsky Master

                also if you using facelets - add f:view contentType="text/html" to top template.