Based on the wicket 1.5 comments in IAjaxCallDecorator.java,
I think, I may need to use "beforeSend" for "decorateScript" and
"onSuccess" for "decorateOnSuccessScript".

But I'm not sure.  Any help?

*Code snippet from wicket 1.5  IAjaxCallDecorator.java*

/**
* Decorates the script that performs the ajax call
*
* @param component
* @param script
* @return decorated script
*/
CharSequence decorateScript(Component component, CharSequence script);

/**
* Decorates the onSuccess handler script
*
* @param component
* @param script
* @return decorated onSuccess handler script
*/
CharSequence decorateOnSuccessScript(Component component, CharSequence
script);

On Tue, Sep 27, 2016 at 8:54 AM, durairaj t <[email protected]> wrote:

> Hi,
>
> I'm replacing "decorateScript(Component arg0,CharSequence script)" with
> "AjaxRequestAttributes#getSuccessHandler(Component component)"
> and
> "decorateOnSuccessScript(Component arg0,CharSequence script)"  with
> "AjaxRequestAttributes# onSuccess(....."
>
>
> *Is it correct?*
>
>
>
>
> On Mon, Sep 26, 2016 at 4:35 PM, Tobias Soloschenko <
> [email protected]> wrote:
>
>> Hi,
>>
>> I just googled for it:
>>
>> http://apache-wicket.1842946.n4.nabble.com/Migration-1-5-gt-
>> 6-CancelEventIfNoAjaxDecorator-td4652609.html
>>
>> Hope this helps.
>>
>> kind regards
>>
>> Tobias
>>
>> > Am 26.09.2016 um 22:13 schrieb durairaj t <[email protected]>:
>> >
>> > How to replace the "new CancelEventIfNoAjaxDecorator();" in  wicket 7
>> > AjaxCallListener?
>> >
>> > Any help?
>>
>
>

Reply via email to