Thanks Igor ! Igor Vaynberg a écrit : > you are using that api completely inside out. you override > getajaxcalldecorator() and make it return one that decorates the script. > > if you want some javascript to execute after the ajax response you can > also add it into the target > > target.appendjavascript(foo) > > -Igor > > > On 8/11/06, *Pierre-Yves Saumont* <[EMAIL PROTECTED] <mailto:[EMAIL > PROTECTED]>> > wrote: > > Hello, > > I am trying to customize an AjaxSubmitButton. If a certain condition is > detected in the onSubmit handler, it should trigger my own Javascript > function. I have tried to do this : > > onSubmit(AjaxRequestTarget target, Form form) { > if (condition) { > getAjaxCallDecorator().decorateOnSuccessScript("myFunction('a > string')"); > } > > The problem is that getAjaxCallDecorator() is always returning null. > > So how is it possible to decorate the onSucess script ? > > Thanks, > > Pierre-Yves > > > ------------------------------------------------------------------------- > > 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 > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> > _______________________________________________ > Wicket-user mailing list > [email protected] > <mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/wicket-user > <https://lists.sourceforge.net/lists/listinfo/wicket-user> > >
------------------------------------------------------------------------- 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-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
