Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » File Uploader Widget
File Uploader Widget [message #22611] Mon, 07 May 2007 14:28 Go to next message
Roberto Sanchez is currently offline Roberto SanchezFriend
Messages: 82
Registered: July 2009
Member
Hello,

Is it planned (in short time) to do a File Upload Widget ? I need it for
my project, I'm thinking in makeing it by myself, but I'm not sure about
the way to follow. There are several posts about the making of Custom
Widgets, but I think that File upload It's an especial one and I don't
know if this tutorial:
http://eclipsezilla.eclipsecon.org/attachment.cgi?id=468 and current
widgets code can give all info I'm going to need.

Any help will be welcome.

Regards.
Roberto.
Re: File Uploader Widget [message #22740 is a reply to message #22611] Mon, 07 May 2007 20:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jkrause.innoopract.com

Hi Roberto,

You may want to try the following:

Create a separate servlet for file upload using a library like this one
http://jakarta.apache.org/commons/fileupload/

and register it with the http registry. You can access the servlet by
using the browser widget.

I found a pretty cool demo (using rails, but anyway) here:

http://sean.treadway.info/demo/upload/

Maybe you can even implement this kind of visual feedback as soon we
provide the progress bar ...

Regards, Jochen

Roberto Sá‡nchez wrote:
> Hello,
>
> Is it planned (in short time) to do a File Upload Widget ? I need it for
> my project, I'm thinking in makeing it by myself, but I'm not sure about
> the way to follow. There are several posts about the making of Custom
> Widgets, but I think that File upload It's an especial one and I don't
> know if this tutorial:
> http://eclipsezilla.eclipsecon.org/attachment.cgi?id=468 and current
> widgets code can give all info I'm going to need.
>
> Any help will be welcome.
>
> Regards.
> Roberto.
Re: File Uploader Widget [message #23004 is a reply to message #22740] Tue, 08 May 2007 09:36 Go to previous messageGo to next message
Roberto Sanchez is currently offline Roberto SanchezFriend
Messages: 82
Registered: July 2009
Member
Thank you Jochen, that the help I need, I hope to get my app ready in 2
weeks, My app is about Curriculums Vitae, I need upload file in order to
include the user photo, I can begin without photo, but I think that is a
good feature for my app.

A progress bar for upload files could by really cool ;-)

Regards.
Roberto.


Jochen Krause escribió:
> Hi Roberto,
>
> You may want to try the following:
>
> Create a separate servlet for file upload using a library like this one
> http://jakarta.apache.org/commons/fileupload/
>
> and register it with the http registry. You can access the servlet by
> using the browser widget.
>
> I found a pretty cool demo (using rails, but anyway) here:
>
> http://sean.treadway.info/demo/upload/
>
> Maybe you can even implement this kind of visual feedback as soon we
> provide the progress bar ...
>
> Regards, Jochen
>
> Roberto Sá‡nchez wrote:
>> Hello,
>>
>> Is it planned (in short time) to do a File Upload Widget ? I need it
>> for my project, I'm thinking in makeing it by myself, but I'm not sure
>> about the way to follow. There are several posts about the making of
>> Custom Widgets, but I think that File upload It's an especial one and
>> I don't know if this tutorial:
>> http://eclipsezilla.eclipsecon.org/attachment.cgi?id=468 and current
>> widgets code can give all info I'm going to need.
>>
>> Any help will be welcome.
>>
>> Regards.
>> Roberto.
Re: File Uploader Widget [message #23230 is a reply to message #22740] Tue, 08 May 2007 16:27 Go to previous messageGo to next message
Roberto Sanchez is currently offline Roberto SanchezFriend
Messages: 82
Registered: July 2009
Member
Hi again,

I'm doing it, Using Apache commons fileupload (by the way, I had a rare
problem with version classes in classpath in run-time) and a Servlet,
Now, I can upload a file to my server, but I have a concept doubt:

I'm using a Browser control in a modal Dialog, My Servlet standard out
writes on such Browser in my dialog, I would like to show, as servlet
answer, a Dialog with WRT Controls, preview of uploaded file, labels,
buttons, etc.

How can I do it ? Now I have a "standard" servlet I can do it with
"HTML-Tradicional-way" but I would like to do it as "RAP-way"

I was reading something (javadoc) about IServiceHandler but I don't know
if it is the solution.

Regards.
Roberto

Jochen Krause escribió:
> Hi Roberto,
>
> You may want to try the following:
>
> Create a separate servlet for file upload using a library like this one
> http://jakarta.apache.org/commons/fileupload/
>
> and register it with the http registry. You can access the servlet by
> using the browser widget.
>
> I found a pretty cool demo (using rails, but anyway) here:
>
> http://sean.treadway.info/demo/upload/
>
> Maybe you can even implement this kind of visual feedback as soon we
> provide the progress bar ...
>
> Regards, Jochen
>
> Roberto Sá‡nchez wrote:
>> Hello,
>>
>> Is it planned (in short time) to do a File Upload Widget ? I need it
>> for my project, I'm thinking in makeing it by myself, but I'm not sure
>> about the way to follow. There are several posts about the making of
>> Custom Widgets, but I think that File upload It's an especial one and
>> I don't know if this tutorial:
>> http://eclipsezilla.eclipsecon.org/attachment.cgi?id=468 and current
>> widgets code can give all info I'm going to need.
>>
>> Any help will be welcome.
>>
>> Regards.
>> Roberto.
Re: File Uploader Widget [message #23391 is a reply to message #23230] Wed, 09 May 2007 06:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

the IServiceHandler would make no difference to your approach with the
servlet. At the moment there is no build in support for fileupload with RAP.
If you are using a fileupload within a html document the form data that
should be sent to the server is submitted with the post method and the
content has to be base64 encoded. This makes it different for a direct
integration with RAP at the moment (By the way there is a integration with
the W4T library which was the initial code contribution of Innoopract for
RAP, so we think we will also be able to come up with a solution for RAP).

One way your additional servlet and the RAP application may interact is the
common session object. You could use the session to exchange information
between them. But as I don't know enough of your UI-needs it is difficult to
provide any further suggestions.

Ciao
Frank


"Roberto S
Re: File Uploader Widget [message #23434 is a reply to message #23391] Wed, 09 May 2007 09:30 Go to previous message
Roberto Sanchez is currently offline Roberto SanchezFriend
Messages: 82
Registered: July 2009
Member
Hi Frank, I've already thoungh about using Session to share data but I
would like to launch an event to "RAP-side" in order to read and manage
these data, How can I do that ?



Frank Appel escribió:
> Hi,
>
> the IServiceHandler would make no difference to your approach with the
> servlet. At the moment there is no build in support for fileupload with RAP.
> If you are using a fileupload within a html document the form data that
> should be sent to the server is submitted with the post method and the
> content has to be base64 encoded. This makes it different for a direct
> integration with RAP at the moment (By the way there is a integration with
> the W4T library which was the initial code contribution of Innoopract for
> RAP, so we think we will also be able to come up with a solution for RAP).
>
> One way your additional servlet and the RAP application may interact is the
> common session object. You could use the session to exchange information
> between them. But as I don't know enough of your UI-needs it is difficult to
> provide any further suggestions.
>
> Ciao
> Frank
>
>
> "Roberto Sá‡nchez" <roberto@autonomind.com> schrieb im Newsbeitrag
> news:f1q85o$cdp$1@build.eclipse.org...
>> Hi again,
>>
>> I'm doing it, Using Apache commons fileupload (by the way, I had a rare
>> problem with version classes in classpath in run-time) and a Servlet, Now,
>> I can upload a file to my server, but I have a concept doubt:
>>
>> I'm using a Browser control in a modal Dialog, My Servlet standard out
>> writes on such Browser in my dialog, I would like to show, as servlet
>> answer, a Dialog with WRT Controls, preview of uploaded file, labels,
>> buttons, etc.
>>
>> How can I do it ? Now I have a "standard" servlet I can do it with
>> "HTML-Tradicional-way" but I would like to do it as "RAP-way"
>>
>> I was reading something (javadoc) about IServiceHandler but I don't know
>> if it is the solution.
>>
>> Regards.
>> Roberto
>>
>> Jochen Krause escribió:
>>> Hi Roberto,
>>>
>>> You may want to try the following:
>>>
>>> Create a separate servlet for file upload using a library like this one
>>> http://jakarta.apache.org/commons/fileupload/
>>>
>>> and register it with the http registry. You can access the servlet by
>>> using the browser widget.
>>>
>>> I found a pretty cool demo (using rails, but anyway) here:
>>>
>>> http://sean.treadway.info/demo/upload/
>>>
>>> Maybe you can even implement this kind of visual feedback as soon we
>>> provide the progress bar ...
>>>
>>> Regards, Jochen
>>>
>>> Roberto Sá‡nchez wrote:
>>>> Hello,
>>>>
>>>> Is it planned (in short time) to do a File Upload Widget ? I need it for
>>>> my project, I'm thinking in makeing it by myself, but I'm not sure about
>>>> the way to follow. There are several posts about the making of Custom
>>>> Widgets, but I think that File upload It's an especial one and I don't
>>>> know if this tutorial:
>>>> http://eclipsezilla.eclipsecon.org/attachment.cgi?id=468 and current
>>>> widgets code can give all info I'm going to need.
>>>>
>>>> Any help will be welcome.
>>>>
>>>> Regards.
>>>> Roberto.
>
>
Previous Topic:RAP multilingual
Next Topic:Table Refresh Error
Goto Forum:
  


Current Time: Wed Apr 24 19:00:49 GMT 2024

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

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

Back to the top