Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:29 Go to next message
Hans Missing name is currently offline Hans Missing nameFriend
Messages: 14
Registered: August 2010
Junior Member
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 13:21]

Report message to a moderator

Re: Updating the view/refreshing an image [message #664512 is a reply to message #664482] Sun, 10 April 2011 15:48 Go to previous messageGo to next message
Hans Missing name is currently offline Hans Missing nameFriend
Messages: 14
Registered: August 2010
Junior Member
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 16:04]

Report message to a moderator

Re: Updating the view/refreshing an image [message #664527 is a reply to message #664512] Sun, 10 April 2011 21:04 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

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 15:40 Go to previous message
Hans Missing name is currently offline Hans Missing nameFriend
Messages: 14
Registered: August 2010
Junior Member
Ok. Thank you for your answer!
ehm..how do I change the name of a registered image?

[Updated on: Fri, 15 April 2011 15:46]

Report message to a moderator

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


Current Time: Thu Apr 25 18:00:16 GMT 2024

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

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

Back to the top