You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by dankicd <dd...@gmail.com> on 2012/04/05 15:18:40 UTC

MultiLineLabel update from background thread

Hi,
I am not sure if this is a right forum for my question but I hope someone
could help me. I have a following problem:
there is an web application which in general enables user to run some test
in background. Right now the output of these tests are displayed when they
are finished. Problem is that these tests can take a while so I have to
display progress of tests,not by some progress bar but just display log info
from test every let say 3 sec. Tests are running in separate thread and
output of tests are stored in variable type of string buffer. I have tried
to write data model for this MultiLineLabel widget which read this string
buffer, in same time I have set AjaxSelfUpdatingTimerBehavior to mentioned
MultiLineLabel widget and set timer to 3 sec. Even whit this log info are
displayed only after thread is finished. Where I've made mistake? Or maybe
whole approach is bad?

(I apologize for my English)

Thanks for any kind of help.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/MultiLineLabel-update-from-background-thread-tp4534816p4534816.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: MultiLineLabel update from background thread

Posted by dankicd <dd...@gmail.com>.
This would be a problem because it is corporate code and they wouldn't be so
happy of publishing code :-(.
But anyway I can wrote a sample similar code and post it here.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/MultiLineLabel-update-from-background-thread-tp4534816p4534869.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: MultiLineLabel update from background thread

Posted by Martin Grigorov <mg...@apache.org>.
Show us your code.

On Thu, Apr 5, 2012 at 3:18 PM, dankicd <dd...@gmail.com> wrote:
> Hi,
> I am not sure if this is a right forum for my question but I hope someone
> could help me. I have a following problem:
> there is an web application which in general enables user to run some test
> in background. Right now the output of these tests are displayed when they
> are finished. Problem is that these tests can take a while so I have to
> display progress of tests,not by some progress bar but just display log info
> from test every let say 3 sec. Tests are running in separate thread and
> output of tests are stored in variable type of string buffer. I have tried
> to write data model for this MultiLineLabel widget which read this string
> buffer, in same time I have set AjaxSelfUpdatingTimerBehavior to mentioned
> MultiLineLabel widget and set timer to 3 sec. Even whit this log info are
> displayed only after thread is finished. Where I've made mistake? Or maybe
> whole approach is bad?
>
> (I apologize for my English)
>
> Thanks for any kind of help.
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/MultiLineLabel-update-from-background-thread-tp4534816p4534816.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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