|
|
Re: Embedding Applet within RAP [message #121206 is a reply to message #110658] |
Wed, 11 February 2009 11:11 |
Kristian Rink Messages: 64 Registered: July 2009 |
Member |
|
|
Folks;
Alex Ignácio da Silva schrieb:
[...]
> Unfortunately I do not have a complete working example to send you right
> now. But the general steps involved are:
[...]
> Create a javascript qooxdoo widget that inherits from
> qx.ui.embed.Iframe. As its name suggests, it embeds an Iframe from which
> you can load an HTML page containing your applet.
Getting back to this rather old thread, we generally do have applet
integration working using the SWT Browser widget which works more or less
well except for two different issues:
(a) Having a Browser widget located in a certain view, I see the applet got
disposed as soon as the view lost focus and, subsequently, got restarted as
soon as the view got focused again. This, in our case, is rather painful as
loading this applet takes some time.
(b) In case of our applet (a document viewer), JavaScript commands / applet
scripting can be issued to make the applet do things, like opening
documents, saving markup, ... . Using a "simple" Browser widget however,
this kind of interaction with the applet in a view is hardly possible.
So to ask: Does anyone have any experience in doing an applet integration
"tighter" than just Browser/iframe to compensate for (or eventually even
overcome) both limitations (a) and (b)?
Thanks in advance and all the best,
Kristian
--
Kristian Rink
cell : +49 176 2447 2771
personal: http://pictorial.zimmer428.net
"Past midnight. Never knew such silence.
The earth might be uninhabited..."
//beckett / krapp's last tape//
|
|
|
Re: Embedding Applet within RAP [message #121308 is a reply to message #121206] |
Thu, 12 February 2009 03:29 |
|
Kristian Rink wrote:
> Folks;
> Alex Ignácio da Silva schrieb:
> [...]
>> Unfortunately I do not have a complete working example to send you right
>> now. But the general steps involved are:
> [...]
>> Create a javascript qooxdoo widget that inherits from
>> qx.ui.embed.Iframe. As its name suggests, it embeds an Iframe from which
>> you can load an HTML page containing your applet.
> Getting back to this rather old thread, we generally do have applet
> integration working using the SWT Browser widget which works more or less
> well except for two different issues:
> (a) Having a Browser widget located in a certain view, I see the applet got
> disposed as soon as the view lost focus and, subsequently, got restarted as
> soon as the view got focused again. This, in our case, is rather painful as
> loading this applet takes some time.
> (b) In case of our applet (a document viewer), JavaScript commands / applet
> scripting can be issued to make the applet do things, like opening
> documents, saving markup, ... . Using a "simple" Browser widget however,
> this kind of interaction with the applet in a view is hardly possible.
> So to ask: Does anyone have any experience in doing an applet integration
> "tighter" than just Browser/iframe to compensate for (or eventually even
> overcome) both limitations (a) and (b)?
> Thanks in advance and all the best,
> Kristian
Kristian,
I haven't tested an applet with a UI, but I've been doing some experiments
with using an applet for background processing on the client. I created a
custom qooxdoo widget similar to the google maps example. Communication
between java and javascript is working. I would be happy to share some of
the code if you are interested.
I'm not sure about sizing of the applet, maybe that's why people are
suggesting an iframe. It should be pretty easy to test it out. When I get
to work tomorrow, I'll take a look and pass the code along.
Cole
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06689 seconds