Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Applets as views
Applets as views [message #89202] Wed, 21 May 2008 08:52 Go to next message
Eclipse UserFriend
Originally posted by: mike.xmos.com

Hi,

This is kind of a complicated issue and probably non-standard use of the
RAP framework but if anyone does have any thoughts that would be great...

One of my RAP views uses a Java applet (it's inside a qooxdoo iframe).
When my perspective changes and the view is hidden, I believe the applet
is getting destroyed. Next time the view is shown, the applet appears
again because (I think) the browser has cached it, but the applet's
state has of course gone. So in other words when the view returns, the
applet's constructor (or init method) is being called but not my
widget's constructor.

I'm guessing there's no way round this because of the way the iframe
behaves?

Cheers,
Mike
Re: Applets as views [message #89348 is a reply to message #89202] Thu, 22 May 2008 05:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

maybe you could embbed the applet without using an iframe?


Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Mike Wrighton [mailto:mike@xmos.com]
Bereitgestellt: Mittwoch, 21. Mai 2008 14:52
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Applets as views
Betreff: Applets as views


Hi,

This is kind of a complicated issue and probably non-standard use of the
RAP framework but if anyone does have any thoughts that would be
great...

One of my RAP views uses a Java applet (it's inside a qooxdoo iframe).
When my perspective changes and the view is hidden, I believe the applet
is getting destroyed. Next time the view is shown, the applet appears
again because (I think) the browser has cached it, but the applet's
state has of course gone. So in other words when the view returns, the
applet's constructor (or init method) is being called but not my
widget's constructor.

I'm guessing there's no way round this because of the way the iframe
behaves?

Cheers,
Mike
Re: Applets as views [message #521357 is a reply to message #89202] Wed, 17 March 2010 07:53 Go to previous messageGo to next message
Eclipse UserFriend
Hello,
I'm trying to embed an applet in a view and you seem to have achieved it. I've looked "everywhere" and can't get past the setSource in the IFrame.

If I set the source to some web page (eg. www.google.com) the iframe displays the content, but if I try to access a resource within my rap plugin I get a 404 error: Problem accessing /rap/helloworld/applet.html.

I have no idea where to put the applet so that It can be found. I've looked at an example here ( http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg06649.html) that seems to store the html to be shown in the iframe in a source package, but it didn't work, can you give me some clues on how to get this to work? Does it need to be registered somehow?

Best regards,
Ivo Carola.

[Updated on: Wed, 17 March 2010 10:23] by Moderator

Re: Applets as views [message #521496 is a reply to message #521357] Wed, 17 March 2010 15:06 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ivo,

I am not sure what kind of interactivity you need between your applet and the RAP application, but you can easily register your HTTP resources via the org.eclipse.equinox.http.registry.resources extension point. I have several applets that are self-contained that render in a view via a browser widget using this method.
Re: Applets as views [message #521937 is a reply to message #521496] Fri, 19 March 2010 07:48 Go to previous message
Eclipse UserFriend
Hi Austin,
Registering the resources did the trick, the applet loaded ok. I'm still not very focused into interactivity, from what I've read all I require can be done.
I'm more focused on strugling with the appearence, I have the applet in a view and I can't get it to resize to fit the view, can it be done?
I work with Eclipse RCP for many years now, but this RAP is a whole new world.

Best regards,
Ivo.
Previous Topic:Calling a custom JavaScript function from RAP
Next Topic:deploying/running RAP: get NoClassDefFoundError: org/xml/sax/SAXException
Goto Forum:
  


Current Time: Sun Aug 31 02:28:50 EDT 2025

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

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

Back to the top