Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Custom widget resource loading
Custom widget resource loading [message #550298] Thu, 29 July 2010 19:51 Go to next message
Paul Kendall is currently offline Paul KendallFriend
Messages: 40
Registered: July 2009
Member
Hi
I have a problem with loading the Javascript resources for custom widgets.

I have the situation where I have the excanvas resource bundle. And I have a
custom widget that uses excanvas. The problem is that at runtime the order
of the bundles is undefined so the custom widget JS may be loaded before
excanvas JS and an error occurs. I know that I can set the order in the run
configuration, but this is not a good solution. I'd like the definition of
RAP resources to have a dependency list so I can specify that my resource
needs the excanvas resource and the JS loader can then order them
accordingly.

I can come up with a patch for this if it would be a good solution for the
problem.

Cheers,
Paul
Re: Custom widget resource loading [message #550347 is a reply to message #550298] Fri, 30 July 2010 01:23 Go to previous messageGo to next message
Paul Kendall is currently offline Paul KendallFriend
Messages: 40
Registered: July 2009
Member
Paul Kendall wrote:

> Hi
> I have a problem with loading the Javascript resources for custom widgets.
>
> I have the situation where I have the excanvas resource bundle. And I have
> a custom widget that uses excanvas. The problem is that at runtime the
> order of the bundles is undefined so the custom widget JS may be loaded
> before excanvas JS and an error occurs. I know that I can set the order in
> the run configuration, but this is not a good solution. I'd like the
> definition of RAP resources to have a dependency list so I can specify
> that my resource needs the excanvas resource and the JS loader can then
> order them accordingly.
>
> I can come up with a patch for this if it would be a good solution for the
> problem.
>
> Cheers,
> Paul

Heres a patch that solves the problem :-)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=321282

Cheers,
Paul
Re: Custom widget resource loading [message #550522 is a reply to message #550347] Fri, 30 July 2010 16:21 Go to previous message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
I like your solution Paul. Thanks for contributing.
Previous Topic:SpringFramework & RAP
Next Topic:Multithreading in RAP
Goto Forum:
  


Current Time: Sun Feb 25 22:28:17 GMT 2024

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

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

Back to the top