1 2 3 Previous Next 37 Replies Latest reply on Feb 4, 2009 6:36 AM by ilya_shaikovsky Go to original post
      • 30. Re: Problems with a4j:commandLink, paging forwarding and IE7

        Hi Guys,

        I tried using the a4j:include . It does not work..the include just started to display the code of the include.

        "ilya_shaikovsky" wrote:
        You can use a4j:include component as a possible workaround. Please see the
        example here:
        http://livedemo.exadel.com/richfaces-demo/richfaces/include.jsf .



        <table border="0" cellpadding="0" height="280" width="625" cellspacing="0" >
        <tr>
        <td valign="top">
         <a4j:include viewId="testAppFragments/welcomeTest.jspf" />
        </td>
        </tr>
        </table>


        Did I miss something here??

        Phil



        • 31. Re: Problems with a4j:commandLink, paging forwarding and IE7

          Anyone else have issues with a4j:include?

          I am trying to fix the request beans from being cleared from the <redirect/> on faces-config.xml.


          Only required on IE7 not on FireFox.

          Phil



          • 32. Re: Problems with a4j:commandLink, paging forwarding and IE7

            Is this thing on???

            Anyone out there???

            • 33. Re: Problems with a4j:commandLink, paging forwarding and IE7

              Hey Guys,

              Could I use something like this to fix the bug???

              HttpServletResponse res = (HttpServletResponse) context.getResponse();
              
               forwardTo(req, res, "testMe.jsf");
              
              
              private void forwardTo(HttpServletRequest req, HttpServletResponse res, String mUri) {
              
               req.setAttribute("testFormBean", formBean);
               mLogger.debug("forwarding to " + mUri);
               String URL = mUri;
               RequestDispatcher rd = req.getRequestDispatcher(URL);
               try {
               rd.forward(req, res);
               } catch (ServletException e) {
               mLogger.debug("Servlet exception: " + e);
               e.printStackTrace();
               } catch (IOException e) {
               mLogger.debug("IO exception: " + e);
               e.printStackTrace();
               }
               }


              This sort of breaks the reason to use jsf or a framework...but it is a fix...I think...

              Phil



              • 34. Re: Problems with a4j:commandLink, paging forwarding and IE7

                Hey Guys,

                When I try that forward with RequestDispatcher I get this error.

                HTTP Status 500 -
                
                type Exception report
                
                message
                
                description The server encountered an internal error () that prevented it from fulfilling this request.
                
                exception
                
                java.lang.NullPointerException: FacesContext is null
                 org.ajax4jsf.context.AjaxContext.getCurrentInstance(AjaxContext.java:126)
                 org.ajax4jsf.context.AjaxContext.getCurrentInstance(AjaxContext.java:111)
                 org.ajax4jsf.component.AjaxViewRoot.getViewId(AjaxViewRoot.java:576)
                 com.sun.faces.lifecycle.Phase.doPhase(Phase.java:104)
                 com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
                 javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
                 org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
                 org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:265)
                 org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:376)
                 org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:503)
                
                note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs.


                • 35. Re: Problems with a4j:commandLink, paging forwarding and IE7

                  Any Help..???

                  Is there someplace I look for help??

                  Is this the only board?

                  Phil

                  • 36. Re: Problems with a4j:commandLink, paging forwarding and IE7
                    anfy2002us

                    hi
                    Is the bug fixed????
                    Any one have workaround?????

                    Anyone???

                    • 37. Re: Problems with a4j:commandLink, paging forwarding and IE7
                      ilya_shaikovsky

                      anfy2002us, this thread is full with different problems :) So I suggest you to start your own and post your concrete problem.

                      B.t.w. if you trying to use navigation from a4j controls - there is only to safe ways and no others:
                      1) use navigation inside a4j:include
                      2) use redirect for navigation cases if without include component.

                      I afraid you should not be surprised that the issue is opened as navigation with AJAX controls (designed for the same page partial updates!) isn't
                      seems the good case.

                      1 2 3 Previous Next