When i use the below change event and onchange function , the whole form is rendering and reset to intial value , could you please advise on this.
Code snippet :
<h:inputText id="txtInjIncDiag" tabindex="5"
styleClass="inputText" style="width:65px";
value="#{ReportBeanPage.mirAF.codeone}" maxlength="7"
valueChangeListener ="#{ReportBeanPage.handlelistener}"
onchange="return func_1(this, event);" immediate="true"
onkeydown="return noCTRL(event)"
onkeypress="javascript:toUpperCase();"
>
Return function in javascript:
function func_1(thisObj, thisEvent) {
thisObj.form.submit();
}