Hmm i think this circles around the worker thread, we disscussed earlier when
talking about a cancel button...
Regards Nino
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent: 21. januar 2007 13:11
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Abort Ajax Operation
and how do they that then? Do you program in your code something like:
while(dosomemorestuff)
{
// do something more
}
and then by another request you set that boolean that it needs to be stopped?
this does not really work currently because we lock the session, so that nobody
have to worry
about multi threading.
But you can go around it. Do that long request in an own request and poll with
ajax when it is finished
Or when you want to abort it. make a call to a shared resource... (thats not
synched) and then set the flag that it needs to stop.
johan
On 1/19/07, samyem <[EMAIL PROTECTED]> wrote:
Is there any way to timeout if the ajax operation does not respond by a
certain time? I've seen in other ajax frameworks where you can submit
multiple ajax requests in parallel, but Wicket does not allow me to do such
a thing.
Matej Knopp wrote:
>
> I don't think this is about AJAX. I think the question concerns the
> session locking. If you make an ajax request and it takes too long, the
> session is locked and the application seem to be frozen.
> I don't think there's much I can do about it.
>
> -Matej
>
>
> Igor Vaynberg wrote:
>> tbh im not even sure there is a way to abort the request initiated
>> through xmlhttprequest object. matej is better suited to answer this, he
>> has many more js scars then i.
>>
>> -igor
>>
>>
>> On 11/22/06, *Eelco Hillenius* <[EMAIL PROTECTED]
>> <mailto: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >> wrote:
>>
>> I don't know if there is anything for that yet. Matej, Igor? If there
>> isn't, you could open a feature request for it.
>>
>> Eelco
>>
>>
>> On 11/21/06, samyem <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
>> wrote:
>> >
>> > When there is an ajax operation, if the operation takes too long,
>> what would
>> > be the best way to abort the operation? The case right now is if
>> there is
>> > any long operation as a result of ajax event, the app freezes
>> till the even
>> > is over.
>> > --
>> > View this message in context:
>> http://www.nabble.com/Abort-Ajax-Operation-tf2681806.html#a7480240
>> > Sent from the Wicket - User mailing list archive at Nabble.com
>> <http://Nabble.com>.
>> >
>> >
>> >
>>
>> -------------------------------------------------------------------------
>> > Take Surveys. Earn Cash. Influence the Future of IT
>> > Join SourceForge.net 's Techsay panel and you'll get the chance
>> to share your
>> > opinions on IT & business topics through brief surveys - and earn
>> cash
>> >
>>
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>
>> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>> > _______________________________________________
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> <mailto: Wicket-user@lists.sourceforge.net
>> <mailto:Wicket-user@lists.sourceforge.net> >
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>>
>>
>> -------------------------------------------------------------------------
>>
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to
>> share your
>> opinions on IT & business topics through brief surveys - and earn
>> cash
>>
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>
>> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >
>> _______________________________________________
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> <mailto:Wicket-user@lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
--
View this message in context:
http://www.nabble.com/Abort-Ajax-Operation-tf2681806.html#a8457424
Sent from the Wicket - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user