Description
If an ajaxified input has got onchange="" defined and a script triggers input.onchange() we get an error: "event must be defined or null"
example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head></h:head>
<h:body>
<h:form id="myForm">
<h:inputText id="myTest1" value="#
<f:ajax render="myTest2" />
</h:inputText>
<h:inputText value="#{myBean.test}
" id="myTest2" />
<script type="text/javascript">
//<![CDATA[
document.getElementById("myForm:myTest1").onchange();
//]]>
</script>
</h:form>
</h:body>
</html>