(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.