« Return to Thread: DWR 2 and Spring 2

Re: DWR 2 and Spring 2

by Lexius :: Rate this Message:

Reply to Author | View in Thread


Brendan Grainger-2 wrote:
Hi,

Try this:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
    xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="
http://www.springframework.org/schema/tx"
    xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
    xsi:schemaLocation="
               http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
               http://www.directwebremoting.org/schema/spring-dwr
http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd"
               default-lazy-init="false"
               >

    <!--  AJAX Facades -->
    <dwr:configuration>

        <dwr:convert type="bean" class="
org.directwebremoting.spring.TestIncludesBean"  >
            <dwr:include method="includedProperty" />
        </dwr:convert>

        <dwr:convert type="bean" class="
org.directwebremoting.spring.TestExcludesBean"  >
            <dwr:exclude method="excludedProperty" />
        </dwr:convert>

         <dwr:convert type="bean" class="org.directwebremoting.spring.Check"
/>

    </dwr:configuration>

</beans>

I am using the DWR and Spring Namespace integration successfully so let me
know if you need anything more.

HTH
Brendan

On 12/16/06, Lexius <lexius.info@gmail.com> wrote:
>
>
> Does anyone have any working example
> configs?
>
> ...
> xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
> http://www.directwebremoting.org/schema/spring-dwr
> http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd
> ...
>
>
> <dwr:controller id="dwrController" debug="true" />
>     <dwr:configuration>
> .....
>
>
> ?
> --
> View this message in context:
> http://www.nabble.com/DWR-2-and-Spring-2-tf2832281.html#a7907311
> Sent from the DWR - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
> For additional commands, e-mail: users-help@dwr.dev.java.net
>
>
Thanks for reply.
Can you show me:

<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
....
<servlet-mapping> for Spring in web.xml
...
and how to use <dwr:remote javascript=""

My config not working for me :(

 « Return to Thread: DWR 2 and Spring 2