|
|
|
Re: Browser's IServiceHandler request doesn't fire. [message #109879 is a reply to message #109451] |
Mon, 20 October 2008 08:18 |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
maybe I'm don't understand it correctly, but why are you calling
Browser#setText() and not Browser#setURL()?
Ciao
Frank
-----Ursprüngliche Nachricht-----
Von: Mark Freiheit [mailto:freiheit@speakeasy.net]
Bereitgestellt: Donnerstag, 16. Oktober 2008 21:05
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Browser's IServiceHandler request doesn't fire.
Betreff: Browser's IServiceHandler request doesn't fire.
Hello, Please forgive me if this is a well known issue addressed
elsewhere. I was unable to find a reference to this particular issue.
We are currently using a Browser component in our RAP application to
serve
up a dynamic image. We are setting an html image source to use our
custom
service handler via ...?custom_service_handler=myChartService... so that
the server will fulfill this request through the handler we register
with
the service.
This works very well except when we update this image when the
containing
view is being activated (via part listener) or in reaction to a
selection
listener during a perspective transition. It appears that the call to
browser.setText(html) is not generating a request during this time. I
wonder if the re-draw of the views/perspective is optimizing away this
specific request. Is this a known issue? Is there a known work-around?
Is there a particular event I can detect, after which I can refresh the
browser image?
Thanks very much for whatever insight your team can provide -- Mark
|
|
|
|
Re: Browser's IServiceHandler request doesn't fire. [message #110062 is a reply to message #109913] |
Tue, 21 October 2008 16:35 |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hm,
I remember a similar problem that was caused by an timing issue. Using
'settimeout' in Javascript to delay the second request a few ms solved
the problem. In your case you could try to set the source attribute of
you img tag using such a javascript snippet.
Ciao
Frank
-----Ursprüngliche Nachricht-----
Von: Mark Freiheit [mailto:freiheit@speakeasy.net]
Bereitgestellt: Montag, 20. Oktober 2008 17:44
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Browser's IServiceHandler request doesn't fire.
Betreff: Re: Browser's IServiceHandler request doesn't fire.
I call setText because I am setting the Browser's HTML contents.
The HTML follows
"<html><head></head><body><center>"
+ " <img
src=\" {0}?custom_service_handler=chartservice&prj={1}&x={2 }&y={3}\ " "
+ " alt=\"Pie Chart\" /> </center></body></html>";
As you can see, it is a simple image tag with a source parameter that
drives a second request to the service. As I mentioned earlier, this
seems to generally work, except when I am in a transition state between
perspectives.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03548 seconds