IE9 + Richfaces Rendering Problem

Ajax request issue in IE9 using Richfaces 3.3.3 Final

Tempororily i resolve the problem by replacing the below lines. It works fine.

Find the file AJAX.js in richfaces-impl.jar

Location : /org/ajax4jsf/javascript/scripts/AJAX.js

line number 1398

      oldnode.outerHTML = new XMLSerializer().serializeToString(newnode); 

and replace it by

  if (typeof window.XMLSerializer != "undefined") 
{
oldnode.outerHTML = new XMLSerializer().serializeToString(newnode);
}
else if (typeof xmlNode.xml != "undefined")
{
oldnode.outerHTML = xmlNode.xml;
}

line number 1627

        dst.setAttribute(attr,value);

and replace by adding try, catch

try 
{
dst.setAttribute(attr, value);
}
catch (err)
{
//alert('Error');
}

(or)

make a copy of AJAX.js file and modified the above lines and include this file into your main page that will replace the old one.

Trouble with Richfaces and IE 10 & 11

The value for meta should be IE=EmulateIE8 and it should appear close to the top of the document.
More reliable way of doing it is to set Response Header. Refer to this answer: https://stackoverflow.com/a/7326359/854386

IE11 Changes DOM structure on JSF rerender

Have you tried setting a meta tag for IE8 rendering mode:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />

As I have heard also RichFaces 3 only supports up to Internet Explorer 8, or you might consider switching to RichFaces 4 for current browser support.

Microsoft: how to ensure compatibility

Hope this helps.

Richfaces Custom Component Renderer Problem

Ok I've found the problem, it is with the facelets.REFRESH_PERIOD, this property if with positive value will make the ui tree to be rebuilt with every request from the original document (calling facelets refresh method)

so the solution was to disable that property with setting it to -1



Related Topics



Leave a reply



Submit