Re: Ajax download stops AjaxSelfUpdatingTimer

2015-01-29 Thread Ernesto Reinaldo Barreiro
I can also try to have a look...

On Fri, Jan 30, 2015 at 6:58 AM, Sven Meier  wrote:

> I'll take a look at it today.
>
> Sven
>
>
> On 30.01.2015 07:14, elvis.ciocoiu wrote:
>
>> I've opened an issue on Jira with my problem. WICKET-5822
>> <https://issues.apache.org/jira/browse/WICKET-5822>  .
>>
>> --
>> View this message in context: http://apache-wicket.1842946.
>> n4.nabble.com/Ajax-download-stops-AjaxSelfUpdatingTimer-
>> tp4668978p4669185.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: Ajax download stops AjaxSelfUpdatingTimer

2015-01-29 Thread Sven Meier

I'll take a look at it today.

Sven

On 30.01.2015 07:14, elvis.ciocoiu wrote:

I've opened an issue on Jira with my problem. WICKET-5822
<https://issues.apache.org/jira/browse/WICKET-5822>  .

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-download-stops-AjaxSelfUpdatingTimer-tp4668978p4669185.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Ajax download stops AjaxSelfUpdatingTimer

2015-01-29 Thread elvis.ciocoiu
I've opened an issue on Jira with my problem. WICKET-5822
<https://issues.apache.org/jira/browse/WICKET-5822>  . 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-download-stops-AjaxSelfUpdatingTimer-tp4668978p4669185.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




Re: Ajax download stops AjaxSelfUpdatingTimer

2015-01-26 Thread Ciocoiu Elvis
Hello again,

Thank you for your hints. Ajax debug shows nothing interesting. It seems it
has to do with
 target.appendJavaScript("setTimeout(\"window.location.href='" + url +
"'\", 100);"); from AjaxDownload. If I comment this the timer works but not
file is downloaded. I refreshed manually the component with the attached
AjaxSelfUpdatingTimer and after the download finished the behavior's
property 'hasTimeout'  is true.
If i manually
call target.appendJavaScript("setTimeout(\"window.location.href='" +
getCallbackUrl() + "'\", 100);"); in an ajax behavior (after the download
finished) the timer is back to normal.

Do you have any ideas?

Thank you.


On Mon, Jan 12, 2015 at 3:10 PM, Martin Grigorov 
wrote:

> Enable Ajax debug panel and see whether there are any interesting log
> messages.
> For example:
>
> https://github.com/apache/wicket/blob/4d2e5680b23e55984e8ac159bdce63629e57df12/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js#L288
> If your JS knowledge is good enough then you may try to debug
> Wicket.Ajax.ajax() yourself. The timer should fire calls to this method but
> they are suppressed for some reason. Either the channel is busy, or there
> is a precondition that stops the ajax calls.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Mon, Jan 12, 2015 at 1:58 PM, elvis.ciocoiu  >
> wrote:
>
> > Hi again,
> >
> > Basically I have a label refreshed automatically with:
> >
> >
> > It is refreshed automatically by the timer until I click an ajax link
> like
> > the following:
> >
> >
> > After I click the download link the file is downloaded but the ajax timer
> > behavior is not triggered anymore.
> >
> > Thank you.
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/Ajax-download-stops-AjaxSelfUpdatingTimer-tp4668978p4668983.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>



-- 
_
Elvis Ciocoiu
Senior Consultant

Everlight Solutions ROMANIA

address: http://www.everlight.ro <http://www.synthesys.ro/>
e-mail: elvis.cioc...@everlight.ro 
mobile : (40) 0745 13 75 85

This message and any attachments contain information, which may be
confidential or privileged.
If you are not the intended recipient, please refrain from any
disclosure, copying, distribution or use of this information.
Please be aware that such actions are prohibited. If you have received
this transmission in error, kindly notify us by email to
off...@everlight.ro . We appreciate your cooperation.


Re: Ajax download stops AjaxSelfUpdatingTimer

2015-01-12 Thread Martin Grigorov
Enable Ajax debug panel and see whether there are any interesting log
messages.
For example:
https://github.com/apache/wicket/blob/4d2e5680b23e55984e8ac159bdce63629e57df12/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js#L288
If your JS knowledge is good enough then you may try to debug
Wicket.Ajax.ajax() yourself. The timer should fire calls to this method but
they are suppressed for some reason. Either the channel is busy, or there
is a precondition that stops the ajax calls.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Mon, Jan 12, 2015 at 1:58 PM, elvis.ciocoiu 
wrote:

> Hi again,
>
> Basically I have a label refreshed automatically with:
>
>
> It is refreshed automatically by the timer until I click an ajax link like
> the following:
>
>
> After I click the download link the file is downloaded but the ajax timer
> behavior is not triggered anymore.
>
> Thank you.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Ajax-download-stops-AjaxSelfUpdatingTimer-tp4668978p4668983.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Ajax download stops AjaxSelfUpdatingTimer

2015-01-12 Thread elvis.ciocoiu
Hi again,

Basically I have a label refreshed automatically with:


It is refreshed automatically by the timer until I click an ajax link like
the following:


After I click the download link the file is downloaded but the ajax timer
behavior is not triggered anymore.

Thank you.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-download-stops-AjaxSelfUpdatingTimer-tp4668978p4668983.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Ajax download stops AjaxSelfUpdatingTimer

2015-01-12 Thread Ernesto Reinaldo Barreiro
Hi,

On Mon, Jan 12, 2015 at 7:48 AM, elvis.ciocoiu 
wrote:

> Hi,
>
> I encounter a strange behavior related to AjaxSelfUpdatingTimerBahavior. I
> triggers normally until I click a link that downloads a dynamic resource.
> The ajax download link is constructed using after the recommendations from:
>
> https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow
> <
> https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow
> >
>
> The problem is
> target.appendJavaScript("setTimeout(\"window.location.href='"
> + url + "'\", 100);"); but if i comment it the download doesn't work
> anymore.
>

I think this was added by Martin Grigorov to give a chance to AJAX channels
to be freed: initially it was window.location.href='"
+ url;. If you comment it, of course, download will not work: because this
what triggers download.


> Is there another solution to download a file using Ajax or to restart the
> timer? If I refresh the page everything is back to normal again.
>

Can you create a quick-start reproducing this problem?

>
> Thank you.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Ajax-download-stops-AjaxSelfUpdatingTimer-tp4668978.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Ajax download stops AjaxSelfUpdatingTimer

2015-01-11 Thread elvis.ciocoiu
Hi,

I encounter a strange behavior related to AjaxSelfUpdatingTimerBahavior. I
triggers normally until I click a link that downloads a dynamic resource.
The ajax download link is constructed using after the recommendations from: 
https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow
<https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow>
  

The problem is target.appendJavaScript("setTimeout(\"window.location.href='"
+ url + "'\", 100);"); but if i comment it the download doesn't work
anymore.

Is there another solution to download a file using Ajax or to restart the
timer? If I refresh the page everything is back to normal again.

Thank you.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-download-stops-AjaxSelfUpdatingTimer-tp4668978.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org