Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Updating the view/refreshing an image(It is possible to update an element in the view?)
Updating the view/refreshing an image [message #664482] Sat, 09 April 2011 09:29 Go to next message
Eclipse UserFriend
Hi,

I hope you can help me. Following situtation: I'm loading a view based on a composite. In its constructor im creating dynamically a jfree chart image and saves it temporally on the hard disk. Then I'm loading the image to assign it to a label by calling setImage.
Up to this point everything works fine but when I want to load and assign an other image to that label it doesn't refresh or redraw. I see the old one. I want to assign this new image to the label when someone clicks on a button in the view...

Does anyone know where my problem is? It is not possible to add/change elements in an existing/already created view?



Best regards
mangaka

[Updated on: Sun, 10 April 2011 09:21] by Moderator

Re: Updating the view/refreshing an image [message #664512 is a reply to message #664482] Sun, 10 April 2011 11:48 Go to previous messageGo to next message
Eclipse UserFriend
I found a clue..
when I use an other name for the new image it will be correctly loaded. therefore the problem is the identical name of the image. rap does not realise that the image was modified and has to be changed. it sends the browser/client the old one when he requests the image.

does anyhone know how to fix this problem?

ps: I'm using Graphics.getImage(String, InputStream) to load the image...

[Updated on: Sun, 10 April 2011 12:04] by Moderator

Re: Updating the view/refreshing an image [message #664527 is a reply to message #664512] Sun, 10 April 2011 17:04 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

this is a known limitation of the resource manager. Currently, the only
workaround is to change the name of the image that is registered, e.g. by
appending a hash or timestamp. Feel free to open a bug for it.

Best regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Updating the view/refreshing an image [message #665724 is a reply to message #664527] Fri, 15 April 2011 11:40 Go to previous message
Eclipse UserFriend
Ok. Thank you for your answer!
ehm..how do I change the name of a registered image?

[Updated on: Fri, 15 April 2011 11:46] by Moderator

Previous Topic:swt.widgets.Text error when append
Next Topic:File Upload control for RAP 1.3.2?
Goto Forum:
  


Current Time: Mon Nov 03 03:37:58 EST 2025

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

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

Back to the top