2014年10月3日 星期五

Richfaces 3.3.2 : ajax /rerender partially not full support in IE11

Status :
    partial rerendering is abnormal for h:inputTextarea, rich:modalPanel, and rich:calendar.
    The following is an image of abnormal h:inputTextarea ,
Reason : Richfaces 3.3.2 ajax not support IE11 because of User-agent string changes 
                  (使用者代理字串變更)

Solution : modifies AJAX.js in the richfaces-impl-3.3.2.GA.jar ,

      step 1 : Patching RichFaces 3.3.3 AJAX.js for IE9 
                    I did the same step to Richfaces 3.3.2 , and it works fine.


     step 2 : adds ie11 checking to Sarissa._SARISSA_IS_IE and Sarissa._SARISSA_IS_IE9 :

Sarissa._SARISSA_IS_IE = (document.all && window.ActiveXObject && navigator.userAgent.toLowerCase().indexOf("msie") > -1 && navigator.userAgent.toLowerCase().indexOf("opera") == -1) || (navigator.userAgent.toLowerCase().indexOf("like gecko") > -1 && navigator.userAgent.toLowerCase().indexOf("11.") > -1);

Sarissa._SARISSA_IS_IE9 = Sarissa._SARISSA_IS_IE && (parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf("MSIE")+5))) >= 9 || (navigator.userAgent.toLowerCase().indexOf("like gecko") > -1 && navigator.userAgent.toLowerCase().indexOf("11.") > -1);

Reference :
    http://ruleoftech.com/2013/patching-richfaces-3-3-3-ajax-js-for-ie9
    https://issues.jboss.org/browse/RF-13443


沒有留言:

張貼留言