This content has been marked as final.
Show 3 replies
-
1. Re: a4j:jsFunction problem
alexsmirnov Jul 31, 2009 1:41 AM (in response to roreto)jsFunction renders JavaScript definition in the page body. The error seems like 'onload' event was called before page processing.
-
2. Re: a4j:jsFunction problem
roreto Jul 31, 2009 9:30 AM (in response to roreto)Thanks for your input.
I moved the js call from the page onload to a onkeyup event on an inputText as follows:<body onload="showInputGrid(); return false;" > <f:loadBundle basename="message" var="msg"/> <h:form id="fngForm" style="width:auto;" > <h:outputText id="fngVersion" value="Version #{FNGFileNamesMasterFB.cvsVersion}" /> <a4j:jsFunction id="formatVersionId" name="formatVersion" reRender="fngVersion" > <a4j:actionparam id="cvsVersionParam" assignTo="#{FNGFileNamesMasterFB.cvsVersion}" value="#{msg.cvsVersion}" /> </a4j:jsFunction> <h:panelGroup id="limsSampleIDGroup"> <h:inputText id="LIMSSampleID" required="false" onkeyup="formatVersion();" styleClass="input" value="#{FNGFileNamesMasterFB.limsSampleID}"> </h:inputText> <h:outputText id="limsSampleIDMessage" styleClass="errorMessage" value="#{FNGFileNamesMasterFB.limsSampleIDError}"/><br /> <h:outputText id="limsSampleIDDescription" value="#{msg.limsSampleIDDescription}" /> </h:panelGroup> ...
The same js error occurs now when I release a key from the inputText field. -
3. Re: a4j:jsFunction problem
ilya_shaikovsky Aug 3, 2009 3:46 AM (in response to roreto)you defined function with parameter and calling it without passing it. So error risen for me also. But it seems not a valid usage.