|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
Re: DWR Spring configuration namespace - ResolvedThank you, I had everything correct but was missing <aop:scoped-proxy> in my bean declaration....which is apparently necessary if your bean implements an interface.
----- Original Message ---- From: "david@..." <david@...> To: users@... Sent: Friday, May 2, 2008 12:00:49 PM Subject: RE: [dwr-user] DWR Spring configuration namespace See if this helps: http://butterdev.com/?page_id=13 Also, check the logs, might give you a clue. Original Message: ----------------- From: Brian Yelle byelle@... Date: Fri, 2 May 2008 10:48:15 -0700 (PDT) To: users@... Subject: [dwr-user] DWR Spring configuration namespace I'm trying to set up DWR using it's namespace with Spring 2.5 and DWR 2.0.1 and am running into problems. I was able to set up using the "Basic Configuration" described in "Spring in Action" which uses the dwr.xml file. However, this does not support springs dependency injection. So using namespace here is what I have: in web.xml: <servlet> <servlet-name>dwr</servlet-name> <servlet-class>org.directwebremoting.spring.DwrSpringServlet</servlet-cl ass> <load-on-startup>2</load-on-startup> <init-param> <param-name>debug</param-name> <param-value>true</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>dwr</servlet-name> <url-pattern>/dwr/*</url-pattern> </servlet-mapping> in applicationContext.xml <bean id="articleManager" class="com.test.project.service.impl.ArticleManagerImpl"> <dwr:remote javascript="ArticleManager"> <dwr:include method="helloWorld"/> </dwr:remote> <property name="articleDao" ref="articleDao"/> <property name="draftArticleDao" ref="draftArticleDao"/> </bean> <dwr:configuration> <dwr:convert type="bean" class="com.test.project.model.Article" /> </dwr:configuration> When I start up and load my page the "ArticleMager" does seem to exist as a javascript object but the helloWorld method is = to undefined. So, I'm clearly missing something...but I'm at a loss for ideas. Any help of good examples would be greatly appreciated. Thank you, B ______________________________________________________________________ ______________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... -------------------------------------------------------------------- mail2web.com - Microsoft® Exchange solutions from a leading provider - http://link.mail2web.com/Business/Exchange --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free Forum Powered by Nabble | Forum Help |