myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Li (JIRA)" <...@myfaces.apache.org>
Subject [jira] Created: (MYFACES-2640) (JSF.js) Ajax Render component problem, replace with whole fragment not one element.
Date Fri, 02 Apr 2010 02:36:27 GMT
(JSF.js) Ajax Render component problem, replace with whole fragment not one element.
------------------------------------------------------------------------------------

                 Key: MYFACES-2640
                 URL: https://issues.apache.org/jira/browse/MYFACES-2640
             Project: MyFaces Core
          Issue Type: Bug
         Environment: tomcat 6.0.20 java (mac os x )
            Reporter: Mark Li


after ajax submit, jsf.js will re-render some element depending on jsf.ajax.request({render:"
some elements "});
but this js code will cause some problem.

jsf.js:

myfaces._impl._util._Utils.replaceHtmlItem = function (request, context, itemIdToReplace,
newTag, form) {
......
                    var fragment = range.createContextualFragment(newTag);
                    evalNode = item.parentNode.replaceChild(fragment, item)
.....
}

sometime fragment will has more than one childNodes, or the childNode not has clientId, but
the childNode of childNode has clientId.

this will cause html unstable.

Please fix it.











-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message