If i understand correctly , I think clock example does not work for you because your first ajax request - to handle the files - has to first finish. Until that finishes the self updating behavior which is a separate ajax request will not fire. So prob you will have to do ur file stuff in a separate thread. But mind u- that thread may not have references to stuff like ur session,application objects- they might be null. So you will have to first get the reqd stuff (any dependecies- say something from ur service layer for example) and then start the thread.
I was able to update a simple label to the current file number being handled for example. For this i did the file stuff in a separate thread. -swaroop Vít Rozkovec wrote: > > Hallo, > how can I force from a middle of the loop, which may run up to few > minutes to update a component's value? > I am manipulating a lot of files and I would like to let the user know > how much of the processing is already done. > I would like to start processing the files when user reaches certain > page and on this same page I want to display statistics of the process. > As an example I tried to use a Clock from your ajax example, but I > cannot manage it to update during running of the loop. I thought of > achieving it somehow with threads, is this right direction? > What is the correct way to do it? > > Thank you. > > Vitek > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Threading-wicket-tf4566130.html#a13034201 Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
