Re: [Wicket-user] Double quotes in AjaxCall Decorator scripts

2006-08-29 Thread Pierre-Yves Saumont
Not really a problem for me. It's just that it can be misleading to have an Ajax call failing when Wicket Ajax Debug Window says it succeeded. May be I did not make myself clear : using double quotes in the failure handler script makes the *Ajax call* fail, not only the failure handler.

Re: [Wicket-user] Double quotes in AjaxCall Decorator scripts

2006-08-29 Thread Igor Vaynberg
On 8/28/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Not really a problem for me. It's just that it can be misleading to havean Ajax call failing when Wicket Ajax Debug Window says it succeeded.it really says it succeeded? the call should never be made... May be I did not make myself clear :

[Wicket-user] Double quotes in AjaxCall Decorator scripts

2006-08-28 Thread Pierre-Yves Saumont
Hello, When defining a script to use with decorateOnFailureScript in AjaxCallDecorator, it is not possible do write: public CharSequence decorateOnFailureScript(CharSequence script) { return alert(\message\); } one can only use single quotes: public CharSequence

Re: [Wicket-user] Double quotes in AjaxCall Decorator scripts

2006-08-28 Thread Igor Vaynberg
not that much we can do since the event script is already in quotes when in html eg style="color: rgb(255, 0, 0);">foo(); if its a big problem write out the message in a standalone js function and call that func from the call decorator.-IgorOn 8/28/06, Pierre-Yves Saumont [EMAIL PROTECTED]