Branding body isn't removed upon app loading [message #1245497] |
Thu, 13 February 2014 17:31  |
Eclipse User |
|
|
|
This used to work fine in RAP 2.0 without any extra workarounds. I.e. the splash screen body (set via branding extensions) was automatically removed once the application finished loading.
In other words the body.html set in the
org.eclipse.rap.ui.branding extension point remains there for the
lifetime of the application.
I'm seeing this behavior myself as we are attempting to migrate RAP 2.0 -> 2.2
Is this a bug in 2.2?
|
|
|
|
|
|
|
|
|
Re: Branding body isn't removed upon app loading [message #1251013 is a reply to message #1250514] |
Wed, 19 February 2014 15:51   |
Eclipse User |
|
|
|
Thank you, Ralph. Your snippet worked and splash portion of the html went away upon application start. It is not perfect: there is a slight timing issue with blank page at some times during application reload before new splash is displayed.
I suspect that this problem with splash image/div not going away may have a result of an earlier workaround I applied in our code. Here is short description:
- our application needs to support automatic restart (i.e. user clicks a button in UI, equinox framework shuts down with 'restart' exit code, then the framework starts again, browser refreshes through the timeout).
- unfortunately, the during restart I was seeing a lot of exceptions like java.lang.IllegalStateException: Could not delete: <path to .metadata\.plugins\org.eclipse.rap.ui\context\rwt-resources\generated\97740fa5.png> image file.
- I investigated the origin of the deletion requests and located: org.eclipse.rap.rwt.internal.application.ApplicationContextImpl.deactivate() which was in turn calling ResourceDirectory.deleteDirectory and eventually attempting to delete an image file.
- Calling ApplicationContextImpl.skipResoureDeletion = true; did the trick to suppress these exceptions. However, now I suspect that this disabled resource clean up is the cause of strange behavior with splash image display.
I'm wondering that if resources cleanup went successfully (I don't know how to achieve that without using the "skipResoureDeletion = true"), the "manual" removal of splash div wouldn't be necessary...
Thank you for your help on this,
-Barys
[Updated on: Wed, 19 February 2014 15:53] by Moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.27948 seconds