>> 3. "JavaScript to relaunch AJAX"
>> What do you recommend here? Recursively calling for example
>> button.onClick()?
>>
> What you do here might depend on your exact use case. But somehow you have
> to use setTimeout combined with wicketAjaxGet and the URL to the component
> which will be used to update page via AJAX.
Which particular setTimeout you mean, javaScript setTimeout("..", nn);
or something else ?
I didn't quite catch your thought here.
Should I have a look at some wicket example where an ajax request is
invoked "manually"? Or something? I really don't know what function to
call and with what arguments to re-try the request if "button.onclick"
is not recommended.
**
Martin
>
>
>
>> **
>> Martin
>>
>> 2009/10/4 Ernesto Reinaldo Barreiro <[email protected]>:
>> > Maybe you could use IAjaxCallDecorator, e.g.
>> >
>> > public class MyCallDecorator implements IAjaxCallDecorator {
>> > ....
>> > public CharSequence decorateOnFailureScript(CharSequence script) {
>> > return script + ";alert('Server down!');" + "JavaScript to relaunch
>> AJAX";
>> > }
>> > }
>> >
>> > Ernesto
>> >
>> > On Sun, Oct 4, 2009 at 12:10 PM, Martin Makundi <
>> > [email protected]> wrote:
>> >
>> >> Hi!
>> >>
>> >> If we build an ajax GUI, we would like to detect "network problems"
>> >> and give graceful errors and maybe retry (like gmail tries to do).
>> >>
>> >> How would it be possible to detect and set these network timeout
>> >> limits with wicket, and probably allow invoking "retry" ('automatic'
>> >> retry after notifying the user)?
>> >>
>> >> **
>> >> Martin
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [email protected]
>> >> For additional commands, e-mail: [email protected]
>> >>
>> >>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]