wanjidong / jmesa

Automatically exported from code.google.com/p/jmesa
0 stars 0 forks source link

onInvokeAction object expected error with jquery-1.5.2.js declared in proper order #312

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am in a Struts 1 app in the WSAD 5.x IDE , using jmesa-3.0.4-retro.jar with 
Java 1.4 on a Windows XP VMware VM.  I am getting the onInvokeAction "object 
expected" error when clicking on any of the rendered table controls.  I have 
jquery-1.5.2.js declared in this order:

<SCRIPT type="text/javascript" 
src="<%=request.getContextPath()%>/scripts/common/jmesa/jquery-1.5.2.js"></SCRIP
T>
<SCRIPT type="text/javascript" 
src="<%=request.getContextPath()%>/scripts/common/jmesa/jquery.jmesa.js"></SCRIP
T>
<SCRIPT type="text/javascript" 
src="<%=request.getContextPath()%>/scripts/common/jmesa/jmesa.js"></SCRIPT>

In the IE 8 debugger with a breakpoint on setOnInvokeAction, I can see that the 
onInvokeAction gets set when I refresh the page and the table is re-rendered.

But when I click on any of the controls I get the "object expected" error on 
onInvokeAction.  I have tried both the minimized and full versions of 
jquery-1.5.2.js.  I am using the default preferences file, without overriding 
any values.  

Could this be due to using Java 1.4, or would it be totally unrelated to that 
since it's in the JavaScript layer?  Any ideas why I might be getting the error?

Original issue reported on code.google.com by r.tim.el...@gmail.com on 21 Apr 2011 at 11:23

GoogleCodeExporter commented 8 years ago
Please disregard.  I realized that I needed to provide my own onInvokeAction 
function in the script.

Original comment by r.tim.el...@gmail.com on 22 Apr 2011 at 12:24