Home » Eclipse Projects » Remote Application Platform (RAP) » Binary content in Browser
Binary content in Browser [message #21120] |
Mon, 30 April 2007 11:03  |
Eclipse User |
|
|
|
Originally posted by: roberto.sanchez.autonomind.com
Hi all,
In my app I generate PDFs dinamically , How can I to show them to user
?, I've thought about creating a temporary file in a directory in web
server and set the url in a Browser control, but I don't know if exists
another way more correct or elegant.
Do you know if it is planned the possibility to set binary content to a
Browser widget in SWT/RAP ?
Thanks in advance.
Roberto.
|
|
| | |
Re: Binary content in Browser [message #21272 is a reply to message #21241] |
Wed, 02 May 2007 12:06   |
Eclipse User |
|
|
|
Originally posted by: roberto.sanchez.autonomind.com
Thank you Markus for your help, Next stage in my app is to create PDFs
and let user to download it, but I'm not sure about the way to follow if
I find any other solution/approach I'll post it here.
Regards.
Roberto.
Markus Krüger wrote:
> Hello,
> I have the same demand for my application in RAP. I solved it with creating
> a servlet that uses the stream of a file (i.e. PDF) and display it whitin
> the
> browser control. But I have to problems that could not be fixed yet. First,
> if I want to save the PDF with the PDF-plugin I get the servlet name as the
> file name to save (i.e. myservlet.pdf).
> Maybe there is a solution for it, but I could not find any. The second and
> more grave problem is, as Rüdiger already mentionedm, that if a file is
> displayed in a browser control that uses a plugin (such as PDF or MSWord),
> then all RAP dialogs, contextmenu, tooltip, etc. appear behind the browser
> control as the plugin is always on top. For modal dialogs this can lead to a
> lock of your application as the dialog can not be closed if it is behind the
> plugin. My solution is to always minimize my browser view as a dialog gets
> opened, but there is no API to do this right now without code change in RAP,
> so I changed it myself for now.
>
> Regards,
> Markus
>
> "Rüdiger Herrmann" <rherrmann@innoopract.com> schrieb im Newsbeitrag
> news:f1a2em$9bs$1@build.eclipse.org...
>> There are no plans to allow to set binary content in the browser widget.
>> Apart from possible problems that the PDF reader plug-in may cause when
>> running in an IFRAME, the way you intend to go should do it.
>>
>> Cheers
>> Rüdiger
>>
>>
>> Roberto Sánchez wrote:
>>> Hi all,
>>>
>>> In my app I generate PDFs dinamically , How can I to show them to user ?,
>>> I've thought about creating a temporary file in a directory in web server
>>> and set the url in a Browser control, but I don't know if exists another
>>> way more correct or elegant.
>>>
>>> Do you know if it is planned the possibility to set binary content to a
>>> Browser widget in SWT/RAP ?
>>>
>>> Thanks in advance.
>>> Roberto.
>
>
|
|
|
Re: Binary content in Browser [message #83566 is a reply to message #21241] |
Fri, 18 April 2008 08:19  |
Eclipse User |
|
|
|
Hi Markus,
Would you mind briefly explaining how you got your servlet to stream a
file to the browser widget?
Thanks,
Mike
Markus Krüger wrote:
> Hello,
> I have the same demand for my application in RAP. I solved it with creating
> a servlet that uses the stream of a file (i.e. PDF) and display it whitin
> the
> browser control. But I have to problems that could not be fixed yet. First,
> if I want to save the PDF with the PDF-plugin I get the servlet name as the
> file name to save (i.e. myservlet.pdf).
> Maybe there is a solution for it, but I could not find any. The second and
> more grave problem is, as Rüdiger already mentionedm, that if a file is
> displayed in a browser control that uses a plugin (such as PDF or MSWord),
> then all RAP dialogs, contextmenu, tooltip, etc. appear behind the browser
> control as the plugin is always on top. For modal dialogs this can lead to a
> lock of your application as the dialog can not be closed if it is behind the
> plugin. My solution is to always minimize my browser view as a dialog gets
> opened, but there is no API to do this right now without code change in RAP,
> so I changed it myself for now.
>
> Regards,
> Markus
>
> "Rüdiger Herrmann" <rherrmann@innoopract.com> schrieb im Newsbeitrag
> news:f1a2em$9bs$1@build.eclipse.org...
>> There are no plans to allow to set binary content in the browser widget.
>> Apart from possible problems that the PDF reader plug-in may cause when
>> running in an IFRAME, the way you intend to go should do it.
>>
>> Cheers
>> Rüdiger
>>
>>
>> Roberto Sánchez wrote:
>>> Hi all,
>>>
>>> In my app I generate PDFs dinamically , How can I to show them to user ?,
>>> I've thought about creating a temporary file in a directory in web server
>>> and set the url in a Browser control, but I don't know if exists another
>>> way more correct or elegant.
>>>
>>> Do you know if it is planned the possibility to set binary content to a
>>> Browser widget in SWT/RAP ?
>>>
>>> Thanks in advance.
>>> Roberto.
>
>
|
|
|
Goto Forum:
Current Time: Thu Mar 13 14:07:39 EDT 2025
Powered by FUDForum. Page generated in 0.02472 seconds
|