That would be pretty hard to do..
If we would spawn all ajax request to a thread. What are we then returning
in the normal request thread?
And what are we doing with the result of that second thread? Poll it
ourself?

Maybe we could make a special behavior/request that you can use that sets a
boolean
somewhere without doing anything else (no touching of pages)
and then that boolean can be checked in the running ajax code now and then
and if it is set the ajax will just directly terminate what it is doing.

But in the end it is always you as developer that has to do something.

johan

On 1/28/07, Prashant Khanal <[EMAIL PROTECTED]> wrote:

Rather than firing new threads for each ajax
operation, wouldn't it be nice that wicket itself
handles each ajax operation in separate threads.
Or there must be some mechanism to allow user to abort
the request.

Anyway i will stick to your idea for now.
--- Johan Compagner <[EMAIL PROTECTED]> wrote:

> just fire off a new thread or runnable (using a
> threadpool)
> and then "connect"  that thread to a session so that
> you can poll for it
> when it is finished.
> Then you also can say, this takes to long and set a
> boolean so that the
> worker thread does do a terminate as soon as
> possible
>
> johan
>
>
> On 1/24/07, Prashant Khanal <[EMAIL PROTECTED]>
> wrote:
> >
> > How to use that in a wicket. Can u explain it a
> bit
> > more.
> > --- Nino Wael <[EMAIL PROTECTED]> wrote:
> >
> > > Why not use a worker thread?
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > >
> [mailto:[EMAIL PROTECTED]
> > > On Behalf Of Prashant Khanal
> > > Sent: 23. januar 2007 04:41
> > > To: [email protected]
> > > Subject: Re: [Wicket-user] how to abort the
> > > xmlhttprequest
> > >
> > > Ok the main problem is that i want to include
> some
> > > timeout mechanism for ajax operation and to
> abort
> > > the
> > > request in case it takes considerable time.
> > > As can be done with XMLHttpRequest using
> setTimeOut,
> > > is there any way that i can achive this in
> wicket.
> > >
> > > So the main reason to cancel is for those ajax
> > > operation that takes awful long time.
> > >
> > > --- Nino Wael <[EMAIL PROTECTED]> wrote:
> > >
> > > > Why do you need to cancel it?
> > > >
> > > >
> > > > -----Original Message-----
> > > > From:
> [EMAIL PROTECTED]
> > > >
> [mailto:[EMAIL PROTECTED]
> > > > On Behalf Of Prashant Khanal
> > > > Sent: 22. januar 2007 12:09
> > > > To: [email protected]
> > > > Subject: [Wicket-user] how to abort the
> > > > xmlhttprequest
> > > >
> > > > Hello all,
> > > > Is there any way to abort the xmlhttprequest
> in
> > > > wicket. As XMLHttpRequest object has got
> abort()
> > > > method to abort the request. Can it be used in
> > > > wicket.
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
>

____________________________________________________________________________________
> > > > We won't tell. Get more on shows you hate to
> love
> > > > (and love to hate): Yahoo! TV's Guilty
> Pleasures
> > > > list.
> > > > http://tv.yahoo.com/collections/265
> > > >
> > > >
> > >
> >
>
-------------------------------------------------------------------------
> > > > 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
> > > > [email protected]
> > > >
> > >
> >
>
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
> > > > [email protected]
> > > >
> > >
> >
>
https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> > >
> > >
> > >
> > >
> >
> >
>

____________________________________________________________________________________
> > > Don't get soaked.  Take a quick peak at the
> forecast
> > > with the Yahoo! Search weather shortcut.
> > >
> http://tools.search.yahoo.com/shortcuts/#loc_weather
> > >
> > >
> >
>
-------------------------------------------------------------------------
> > > 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
> > > [email protected]
> > >
> >
>
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
> > > [email protected]
> > >
> >
>
https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> >
> >
> >
> >
>

____________________________________________________________________________________
> > Never miss an email again!
> > Yahoo! Toolbar alerts you the instant new Mail
> arrives.
>
=== message truncated ===>
-------------------------------------------------------------------------
> 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
> [email protected]
>
https://lists.sourceforge.net/lists/listinfo/wicket-user
>





____________________________________________________________________________________
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265

-------------------------------------------------------------------------
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to