You have to add /dwr/* to the StaticFilter in web.xml and you should also
use http://localhost:8080/dwr/ if you're running using the Jetty plugin.
Matt

On 7/11/07, cdtm <[EMAIL PROTECTED]> wrote:


I've just seen that my last post isn't rendered properly. Basically I just
removed the comments in dwr.xml. Is there anything else to do to get dwr
running?



cdtm wrote:
>
> Hi,
>
> I tried to get the dwr running. I uncommented the part in the dwr.xml.
It
> looks like that:
>
> <!DOCTYPE dwr PUBLIC
>     "-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN"
>     "http://getahead.ltd.uk/dwr/dwr20.dtd";>
> <dwr>
>     <allow>
>         <create creator="spring" javascript="UserManager">
>
>
>             <include method="getUsers"/>
>         </create>
>         <convert converter="bean" match="org.appfuse.model.User"/>
>     </allow>
> </dwr>
>
>
> Now I tried to find the webpage that describes the functions provided.
It
> should be http://localhost:8080/[YOUR-WEBAPP]/dwr/
>
> What exactly is my webapp? Is this the name of my project I specified
when
> creating the appfuse project? Cause that does not work. Is there any
check
> if dwr is running? Or do I have to do anything to get it running? I
> searched the entire directory for an engine.js, so I assume that it does
> not run yet.
>
> Any suggestions?
>
> Thanks in advance
>
>
>
>
> mraible wrote:
>>
>> There's no DWR functionality in place, but it is installed and ready to
>> use.
>> Matt
>>
>> On 7/10/07, cdtm <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>> Thanks for the reponse,
>>>
>>> I did some research on Ajax frameworks but could not find any hint
that
>>> AjaxTags support anything like Ajax Push.
>>>
>>> However a framework called DWR seems to provide this functionality. An
>>> example is given here:
>>> http://java-x.blogspot.com/2007/03/reverse-ajax-with-
>>> direct-web-remoting.html
>>>
>>> I do not actually get how to integrate this code into my appfuse
>>> project.
>>> When I compare the code in the above mentioned example - how do I get
>>> the
>>> ServerContext there?
>>>
>>> Has anyone integrated DWR Reverse Ajax in an appfuse project? Maybe
you
>>> can
>>> give me some code snippets?
>>>
>>> I also found out that appfuse already comes with the dwr library and
>>> dwr.xml. Is there already any dwr functionality in place?
>>>
>>> Cheers,
>>>
>>> Johannes
>>>
>>>
>>>
>>>
>>>
>>> Michael Horwitz wrote:
>>> >
>>> >  I'm assuming you want to push from the server side rather than
having
>>> the
>>> > client poll the server for updates?
>>> >
>>> > Bit of a hot topic this one. Just google "Ajax push" or "Ajax Comet"
>>> for
>>> > tons of stuff on the subject. One example:
>>> > http://ajaxian.com/archives/comet-a-new-approach-to-ajax
-applications
>>> >
>>> > At the moment the only real way to do the above and still let the
user
>>> > interact with the webpage while it waits for updates is to use
>>> long-lived
>>> > Ajax requests. Any of the Ajax javascript frameworks should support
>>> this
>>> -
>>> > your choice is largely going to be based on what you need to update
on
>>> the
>>> > page as a result of the notification, and in what format you want to
>>> > return
>>> > the update content/notification.
>>> >
>>> > One of the simplest approaches if you are using AppFuse is to use
>>> Ajaxtags
>>> > to drive the Ajax bit: http://ajaxtags.sourceforge.net  simply
because
>>> it
>>> > is
>>> > based on Scriptaculous/prototype which are already included in
>>> AppFuse.
>>> >
>>> > The tricky bit is the server side. The servlet spec dictates one
>>> thread
>>> > per
>>> > request which assumes that requests are relatively short lived. Once
>>> the
>>> > threads start hanging around for ages waiting for updates, you can
>>> quickly
>>> > run into trouble. Jetty has come up with a solution, but it is not
yet
>>> > part
>>> > of the servlet specification:
>>> > http://docs.codehaus.org/display/JETTY/Continuations
>>> >
>>> > Not sure if there is anything out there yet to automatically handle
>>> the
>>> > wait/updates on the server side - if you find anything please let us
>>> know!
>>> >
>>> > Mike
>>> >
>>> > On 7/9/07, cdtm <[EMAIL PROTECTED]> wrote:
>>> >>
>>> >>
>>> >> We are using appfuse 2.0 and Spring MVC. Thanks in advance
>>> >>
>>> >>
>>> >>
>>> >> mraible wrote:
>>> >> >
>>> >> > Which web framework are you using? Which version of AppFuse are
you
>>> >> using?
>>> >> >
>>> >> > Matt
>>> >> >
>>> >> > On 7/8/07, cdtm <[EMAIL PROTECTED]> wrote:
>>> >> >>
>>> >> >> Hi!
>>> >> >>
>>> >> >> We are having a hard time figuring out how to trigger a page
>>> refresh
>>> >> from
>>> >> >> the server side every few seconds when a server-side event is
>>> created.
>>> >> >>
>>> >> >> We would prefer a rather simple and straightforward solution.
>>> >> >>
>>> >> >> Maybe you have some ideas on how to use DWR library (or any
other)
>>> for
>>> >> >> this
>>> >> >> purpose?
>>> >> >>
>>> >> >> Any hint is appreciated..
>>> >> >> Thanks a lot!
>>> >> >>
>>> >> >> mda
>>> >> >> --
>>> >> >> View this message in context:
>>> >> >>
>>> >> http://www.nabble.com/Triggering-a-page-refresh-from-the
>>> -server-side-tf4044648s2369.html#a11489083
>>> >> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>> >> >>
>>> >> >> ------------------------------------------------------------
>>> ---------
>>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>>> >> >>
>>> >> >>
>>> >> >
>>> >> >
>>> >> > --
>>> >> > http://raibledesigns.com
>>> >> >
>>> >> >
>>> ---------------------------------------------------------------------
>>> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> >> > For additional commands, e-mail: [EMAIL PROTECTED]
>>> >> >
>>> >> >
>>> >> >
>>> >>
>>> >> --
>>> >> View this message in context:
>>> >> http://www.nabble.com/Triggering-a-page-refresh-from-the
>>> -server-side-tf4044648s2369.html#a11497993
>>> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>> >>
>>> >> ------------------------------------------------------------
---------
>>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>>> >>
>>> >>
>>> >
>>> >
>>>
>>>
>>> --
>>> View this message in context: http://www.nabble.com/Triggeri
>>> ng-a-page-refresh-from-the-server-side-tf4044648s2369.html#a11534917
>>>
>>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>> --
>> http://raibledesigns.com
>>
>>
>
>

--
View this message in context: http://www.nabble.com/Triggeri
ng-a-page-refresh-from-the-server-side-tf4044648s2369.html#a11548194

Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://raibledesigns.com

Reply via email to