Re: [Wicket-user] Customizing AjaxSubmitButton

2006-08-11 Thread Pierre-Yves Saumont
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]  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
> 
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> 
> 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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Customizing AjaxSubmitButton

2006-08-11 Thread Igor Vaynberg
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)-IgorOn 8/11/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:
Hello,I am trying to customize an AjaxSubmitButton. If a certain condition isdetected 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('astring')");   }
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 easierDownload 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 listWicket-user@lists.sourceforge.nethttps://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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Customizing AjaxSubmitButton

2006-08-11 Thread Pierre-Yves Saumont
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
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user