Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » UICallback - Server- side refresh
UICallback - Server- side refresh [message #76961] Thu, 06 March 2008 03:43 Go to next message
Eclipse UserFriend
Originally posted by: me.micha-shl.de

Hey all,

i wanted to ask one Question refering the server- side initiated refresh.
If I call the display.async() and change for example the text of a label
just once, everything works fine.

But if I wanted to change the text of the same label twice, just the last
change seems to show. Between the 2 changes I have a thread.sleep().

Do I misunderstand the functionality of the async - method or can anybody
tell me how I can do multiple refreshes of an UI component. I want to
implement a simple Counter but I can`t get it to work. Really
disappointing ;)

Regards
Michael
RE: UICallback - Server- side refresh [message #77166 is a reply to message #76961] Thu, 06 March 2008 14:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

how long is your sleep time? It seems as if the second runnable is
executed before the UIThread runs (runnable flooding with asyncExec).
Did you try Display#syncExec(Runnable)?

Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Michael [mailto:me@micha-shl.de]
Bereitgestellt: Donnerstag, 6. März 2008 09:43
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: UICallback - Server- side refresh
Betreff: UICallback - Server- side refresh


Hey all,

i wanted to ask one Question refering the server- side initiated
refresh.
If I call the display.async() and change for example the text of a label
just once, everything works fine.

But if I wanted to change the text of the same label twice, just the
last change seems to show. Between the 2 changes I have a
thread.sleep().

Do I misunderstand the functionality of the async - method or can
anybody tell me how I can do multiple refreshes of an UI component. I
want to implement a simple Counter but I can`t get it to work. Really
disappointing ;)

Regards
Michael
Re: UICallback - Server- side refresh [message #77284 is a reply to message #77166] Fri, 07 March 2008 01:51 Go to previous message
Eclipse UserFriend
Originally posted by: me.micha-shl.de

Hey Frank,

Thank you for your reply. But I solved the problem. I just had to move
some lines of Code ;P

Regards

Michael


Frank Appel wrote:

> Hi,

> how long is your sleep time? It seems as if the second runnable is
> executed before the UIThread runs (runnable flooding with asyncExec).
> Did you try Display#syncExec(Runnable)?

> Ciao
> Frank

> -----Ursprüngliche Nachricht-----
> Von: Michael [mailto:me@micha-shl.de]
> Bereitgestellt: Donnerstag, 6. März 2008 09:43
> Bereitgestellt in: eclipse.technology.rap
> Unterhaltung: UICallback - Server- side refresh
> Betreff: UICallback - Server- side refresh


> Hey all,

> i wanted to ask one Question refering the server- side initiated
> refresh.
> If I call the display.async() and change for example the text of a label
> just once, everything works fine.

> But if I wanted to change the text of the same label twice, just the
> last change seems to show. Between the 2 changes I have a
> thread.sleep().

> Do I misunderstand the functionality of the async - method or can
> anybody tell me how I can do multiple refreshes of an UI component. I
> want to implement a simple Counter but I can`t get it to work. Really
> disappointing ;)

> Regards
> Michael
Previous Topic:Mixing RAP With HTML
Next Topic:Problem with perspective layout
Goto Forum:
  


Current Time: Sat Jun 21 12:19:38 EDT 2025

Powered by FUDForum. Page generated in 0.03993 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top