3 Replies Latest reply on Mar 13, 2007 3:53 PM by wiggum14

    AJAX4JSF and Shale 1.0.4

      Hello,

      This is a topic I've discussed on other forums and wanted to add it here since this is A4J's new crib.

      Coupling A4J along with Shale 1.0.4 breaks the A4J, attempting an AJAX results in a java script error "A4J is undefined". Doing some investigation into the issue I've found AjaxContext.procesHeadResources runs correctly and places the appropriate script entry into the requestMap. When BaseXMLFilter tries to pull out the Set of scripts from request.getAttribute to add to the scripts to the parser, null is returned from the request. So, the .js references are never added to the outgoing page. For more information in this issue, please see the link below.

      A4J does work with Shale 1.0.3.


      http://www.nabble.com/AJAX4JSF---Shale-1.0.4-t3148641.html

        • 1. Re: AJAX4JSF and Shale 1.0.4

          So, you still has this problem with Ajax4jsf 1.1.0 . Right?

          • 2. Re: AJAX4JSF and Shale 1.0.4

            Yes, the problem still exists in 1.1.0. I'm playing around with the source a little and attempting to place the SCRIPTS_PARAMETER onto the session instead of the request. Not the idea solution, but I'd like to see if it works.

            Thanks

            • 3. Re: AJAX4JSF and Shale 1.0.4

              Thanks for your time, but I have found the issue within Shale. Their phase listener is removing all entries from the request map after the render response phase. I've entered a bug within their issue tracker (#409 if anyone else is waiting for this to be fixed).

              Thanks again.