6 Replies Latest reply on Mar 28, 2007 5:09 PM by Sergey Smirnov

    Error page

    maitre - Newbie

      I have a custom jsf error page with contain richface tab panel.
      Although no error traces are shown I don't see the tab.

      In fact my generated hml code does contain reference to richface style page and script.

      When I add then, I get the right page.
      Content added :

      <link rel="stylesheet" type="text/css" href="/[..path..]/renderkit/html/css/tabPanel.xcss/DATA/eAFbJaehBAADeAET.jsf"/>
      <link rel="stylesheet" type="text/css" href="/[..path..]/renderkit/html/css/spacer.xcss/DATA/eAFbJaehBAADeAET.jsf"/>
      <link rel="stylesheet" type="text/css" href="/[..path..]/renderkit/html/css/table.xcss/DATA/eAFbJaehBAADeAET.jsf"/>
      <link rel="stylesheet" type="text/css" href="/[..path..]/renderkit/html/css/slider.xcss/DATA/eAFbJaehBAADeAET.jsf"/>
      <script type="text/javascript" src="/[..path..]/a4j.res/org.ajax4jsf.framework.ajax.AjaxScript.jsf"></script>
      <script type="text/javascript" src="/[..path..]/a4j.res/prototype.js.jsf"></script>
      <script type="text/javascript" src="/[..path..]/a4j.res/org.ajax4jsf.framework.ajax.ImageCacheScript.jsf"></script>
      <script type="text/javascript" src="/[..path..]/renderkit/html/scripts/browser_info.js.jsf"></script>
      <script type="text/javascript" src="/[..path..]/a4j.res/org/ajax4jsf/renderkit/html/scripts/form.js.jsf"></script>
      <script type="text/javascript" src="/[..path..]/renderkit/html/scripts/tabPanel.js.jsf"></script>
      <script type="text/javascript" src="/[..path..]/renderkit/html/script/SliderScript.js.jsf"></script>


      How can i make my error page work normally without this bad fix?


        • 1. Re: Error page
          maitre - Newbie

          link rel="stylesheet" type="text/css" href="/[..path..]/renderkit/html/css/tabPanel.xcss/DATA/eAFbJaehBAADeAET.jsf"/
          link rel="stylesheet" type="text/css" href="/[..path..]/renderkit/html/css/spacer.xcss/DATA/eAFbJaehBAADeAET.jsf"/
          link rel="stylesheet" type="text/css" href="/[..path..]/renderkit/html/css/table.xcss/DATA/eAFbJaehBAADeAET.jsf"/
          link rel="stylesheet" type="text/css" href="/[..path..]/renderkit/html/css/slider.xcss/DATA/eAFbJaehBAADeAET.jsf"/
          script type="text/javascript" src="/[..path..]/a4j.res/org.ajax4jsf.framework.ajax.AjaxScript.jsf"
          script type="text/javascript" src="/[..path..]/a4j.res/prototype.js.jsf"
          script type="text/javascript" src="/[..path..]/a4j.res/org.ajax4jsf.framework.ajax.ImageCacheScript.jsf"
          script type="text/javascript" src="/[..path..]/renderkit/html/scripts/browser_info.js.jsf"
          script type="text/javascript" src="/[..path..]/a4j.res/org/ajax4jsf/renderkit/html/scripts/form.js.jsf"
          script type="text/javascript" src="/[..path..]/renderkit/html/scripts/tabPanel.js.jsf"
          script type="text/javascript" src="/[..path..]/renderkit/html/script/SliderScript.js.jsf"

          • 2. Re: Error page
            Sergey Smirnov Master

            The page should come through Ajax4jsf Filter.

            • 3. Re: Error page
              maitre - Newbie

              What mean : The page should come through Ajax4jsf Filter

              so the filter does not manage error page created like this :

              <error-page>
              <error-code>500</error-code>
              error.jsf
              </error-page>

              • 4. Re: Error page
                Sergey Smirnov Master

                It looks like that. How you declare the ajax4jsf filter mapping?

                • 5. Re: Error page
                  maitre - Newbie

                   

                  <!-- ajax4j -->
                  <filter>
                   <display-name>Ajax4jsf Filter</display-name>
                   <filter-name>ajax4jsf</filter-name>
                   <filter-class>org.ajax4jsf.Filter</filter-class>
                  </filter>
                  
                  <!-- ajax4j filter mapping-->
                  <filter-mapping>
                   <filter-name>ajax4jsf</filter-name>
                   <servlet-name>FacesServlet</servlet-name>
                   <dispatcher>REQUEST</dispatcher>
                   <dispatcher>FORWARD</dispatcher>
                   <dispatcher>INCLUDE</dispatcher>
                  </filter-mapping>


                  I want to redirect user to an error page when a mistake occurs

                  • 6. Re: Error page
                    Sergey Smirnov Master

                    filter is declared Ok. However, it does not force the servlet to pass the error page though filter.

                    Only one possible way I see: to use error page as a redirect to other page has an error content. Unfortunately, the request scope data will not be available in this way.