Ahh forget full me! there is ofcouse another option :) In wicketstuff
theres the progress something contrib. That might just be what you are
looking for.
http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-progressbar
Hmm wicketstuff seems to be down ;/ I wonder why you are having trouble
with your current approach it should be okay afaik, the value that you
update is it in a model? You could actually do a abstractreadonlymodel
which had contact to your thread so it could see if the generation where
done..?
Adriano dos Santos Fernandes wrote:
Hi Nino!
From my understanding of the component and the example, it will make a
length AJAX call until the report is complete, so it will make the
user session blocked. Or am I wrong?
Thanks,
Adriano
Nino Saturnino Martinez Vazquez Wael escreveu:
put the stuff in a lazyloading panel..
Adriano dos Santos Fernandes wrote:
Hi!
AFAIK, processing for ResourceStreamRequestTarget is not
synchronized, so I can have more than one running in the same
session. But due to my other problem, I had to wrap it on a Page to
redirect. But that suspend user interaction until a report is
completed, a thing that I don't want.
So I'm now generating (nothing depends on Wicket) the report in a
new thread started on the Page constructor and when that thread
finalizes it puts the report on a variable of the Page. Meanwhile,
there is a AbstractAjaxTimerBehavior verifying when that variable is
not null to create the ResourceStreamRequestTarget and do the
redirection.
This works, but only when I'm doing nothing except waiting for the
report completion. Is it due to when any other request happens the
original page is serialized and the running thread updates the old
one, and the timer acts on the new deserialized page?
Is there a way to do background work like I want?
Thanks,
Adriano
---------------------------------------------------------------------
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]
--
-Wicket for love
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]