The usecase is that you sometimes want to work in Javascript on the client side, and trigger an ajax event from there.
Wicket doesn't have a DWR way of working, so I suggested getting the client side url for the ajaxlink, and evaluate that when the ajax call needs to be done. On the serverside you implement the serverside behavior in the link listener. The specific problem in this case is that there is no specific client side event where the behavior can attach itself to. The trigger doesn't come from a direct user action, but from some client side javascript, which could be triggered from a timer. The server *does* need an entry point to callback. I'd love to have a DWR like way of calling methods on a page or panel. I think doing it for a page is rather easy to do, but the panel one gives me shivers across my spine. Martijn On 7/11/06, Maurice Marrink <[EMAIL PROTECTED]> wrote: > My javascript is invoked by a mouseclick on a non wicket html component. > Making this a wicket component would be unpractical in my case. > > I am currently using an AjaxLink which already uses an > AjaxEventBehaviour and am already customizing the callback script with > a callbackdecorator. It is not that this is impossible to do, its just > that there must be easier ways to do this. preferably something that > other people can reuse. > > I am currently trying to figure out how i can transport the request > parameters from the behaviourrequesttarget to my ajaxlink. > > Thanks for thinking with me. > > Maurice > > On 7/11/06, Frank Bille Jensen <[EMAIL PROTECTED]> wrote: > > How is your javascript invoked? If it's anything that a on* (onclick, > > onmouseover) can handle, then take a look at AjaxEventBehavior and > > AjaxCallbackDecorator. > > > > Regards > > Frank Bille > > Avaleo > > > > On Tue, 2006-07-11 at 11:39 +0200, Maurice Marrink wrote: > > > Hi, > > > > > > I need to trigger an ajax request from within my client side javascript. > > > Ideally i should be able to contribute a javascript method to the > > > header which will also allow me to pass some parameters before it > > > triggers the ajaxcall. > > > > > > I can do the header contribution but the problem lies in triggering > > > the ajaxcall. > > > > > > I have spoken to Martijn and he suggested using an ajaxlink and then > > > use document.location to trigger it. He also said you guys might be > > > able to come up with a better solution more in the lines of what i > > > described above and using less hacks. > > > > > > So, if you have any ideas /suggestions don't be shy :) > > > > > > Maurice > > > > > > > > > ------------------------------------------------------------------------- > > > Using Tomcat but need to do more? Need to support web services, security? > > > Get stuff done quickly with pre-integrated technology to make your job > > > easier > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > _______________________________________________ > > > Wicket-develop mailing list > > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/wicket-develop > > > > > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Wicket-develop mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/wicket-develop > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Wicket-develop mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-develop > -- Download Wicket 1.2 now! Write Ajax applications without touching JavaScript! -- http://wicketframework.org ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
