Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » conceptual question: "file download link"?
conceptual question: "file download link"? [message #123318] Fri, 27 February 2009 11:40 Go to next message
Kristian Rink is currently offline Kristian RinkFriend
Messages: 64
Registered: July 2009
Member
Folks;

maybe I'm a little off track here, but using RAP I am at the moment trying
to achieve something pretty common in "ordinary" web user interfaces: In
some place (like the cell of a TableViewer) I want to place a functionality
to do a straightforward file download. There's a file provider servlet in
another application somewhere out in our system, and usually I can refer to
(and actually download) arbitrary files via HTTP using this servlet... the
only problem I see so far: How to "emulate" this feature (an HTML hyperlink
that makes the browser access an arbitrary HTTP ressource outside the RAP
context) in a RAP user interface? Ideas, anyone?

TIA and all the best,
Kristian
Re: conceptual question: "file download link"? [message #123447 is a reply to message #123318] Mon, 02 March 2009 12:10 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Kristian,

as of now, there is no "download widget" or similar in RAP.
The browser widget with a mini HTML page that contains only a link
is probably the quickest workaround.
If you need more control over the details, writing a custom widget
shouldn't be too complicated either. In the latter case, feel free
to share your code if you think it might be of general interest.

HTH
Rüdiger

Kristian Rink wrote:
> Folks;
>
> maybe I'm a little off track here, but using RAP I am at the moment trying
> to achieve something pretty common in "ordinary" web user interfaces: In
> some place (like the cell of a TableViewer) I want to place a functionality
> to do a straightforward file download. There's a file provider servlet in
> another application somewhere out in our system, and usually I can refer to
> (and actually download) arbitrary files via HTTP using this servlet... the
> only problem I see so far: How to "emulate" this feature (an HTML hyperlink
> that makes the browser access an arbitrary HTTP ressource outside the RAP
> context) in a RAP user interface? Ideas, anyone?
>
> TIA and all the best,
> Kristian
Re: conceptual question: "file download link"? [message #123496 is a reply to message #123447] Mon, 02 March 2009 15:06 Go to previous message
Kristian Rink is currently offline Kristian RinkFriend
Messages: 64
Registered: July 2009
Member
Hi Rüdiger;

and first off, thanks a bunch for your thoughts on that.

Rüdiger Herrmann schrieb:
> as of now, there is no "download widget" or similar in RAP.
> The browser widget with a mini HTML page that contains only a link is
> probably the quickest workaround.

Well this is sort of what I intended to do... Eventually all that is
required in my use case so far would be a hyperlink (like used in the
RCP/IDE or in the RAP mail demo to display the e-mail address) referring to
an HTTP ressource outside the actual RAP application, maybe something like
Eclipse Forms' Hyperlink. Custom "download widget" would be a second option
to consider, I guess...

Cheers & thanks again,
Kristian
Previous Topic:Non-selectable nodes in tree
Next Topic:Getting session from any thread
Goto Forum:
  


Current Time: Fri May 03 21:37:11 GMT 2024

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

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

Back to the top