1 Reply Latest reply on Apr 19, 2013 4:34 AM by giofyxle

    Double <head> and <body>-Tag using Richfaces ajax only on JBoss not on WebSphere

    giofyxle Newbie

      Hallo!

       

      I use JSF 1.2 together with facelets and richfaces3.3.3FINAL for ajax functionality.

      The App is deployed on JBoss and on WebSphere.

       

      Now I realise, that on every page where a4jsf (richfaces) is used, there is a second <head>-tag and a second <body>-tag added to the DOM via javascript:

       

      <html>

      ...

      <head> ...my data </head>

      <body> ...my data </body>

       

      <head>

          <script xmlns="http://www.w3.org/1999/xhtml">

              A4J.AJAX._scriptEvaluated=true;

          </script>

      </head>

      <body>

      </body>

       

      </html>

       

      (The  blue Tags are inserted on my JBoss apps via javascript. I.e. I can see the tags in the Dom but not n the document source.)

       

       

       

      This happens only when the App is deployed on JBoss. With the WAS-deployments I cannot find this feature.

       

      I also can see, that this additional tags are added by a Javascript file:

       

      a4j_3_1_3.GAorg.ajax4jsf.javascript.AjaxScript.jsf

       

      And I can see, that theese js-files differ in JBoss and in WAS:

       

      for example:

       

      On JBoss i starts with:

      if(!window.A4J){window.A4J={};}

      function Sarissa(){};Sarissa.VERSION="${project.version}";...

       

      On WebSphere it starts with:

      if(!window.A4J){window.A4J={};}

      function Sarissa(){}

      Sarissa.VERSION="0.9.9.3";

       

      So I assume, that there is a missing setting on my JBoss environment.

       

       

      How can I fix this, so that my JBoss environment will work the same?

       

      Thanks

       

      Gio