So, with the help of this link:
http://bram.jteam.nl/index.php/2007/...jax-made-easy/
I kind of got DWR list page to show up. However, anytime I try to execute any of the functions shown on the page, it throws an error.
This is what I first put in
[code]
<bean id="myManager" class="llr.service.impl.MyManagerImpl">
<dwr:remote javascript="MyAjaxManagerService">
<dwr:include method="loadById"/>
<dwr:include method="loadByUserId"/>
</dwr:remote>
<property name="myDao" ref="myDao"/>
</bean>
[code]
The logs show
I looked a little further and found a <dwr:configuration> tag which I thought would be the correct way to do it.Code:007-04-04 01:32:53,437 WARN [org.directwebremoting.impl.DefaultRemoter] - Method execution failed: java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
So, here's what I have now
Code:<bean id="myManager" class="com.service.impl.MyManagerImpl"> <dwr:remote javascript="MyAjaxManagerService"> <dwr:include method="loadById"/> <dwr:include method="loadByUserId"/> </dwr:remote> <property name="myDao" ref="myDao"/> </bean> <dwr:configuration> <dwr:create type="new" class="com.service.impl.MyManagerImpl"" javascript="MyAjaxService"/> <dwr:convert type="bean" class="com.model.TestObject" /> </dwr:configuration>
This now gives me Null Pointer exceptions on Loading (in the tomcat logs)
http://getahead.org/blog/joe/2006/06...s_and_dwr.html
is the link I was trying to base my code off.
Please help!


Reply With Quote