Home » Eclipse Projects » Remote Application Platform (RAP) » File Uploader Widget
File Uploader Widget [message #22611] |
Mon, 07 May 2007 10:28  |
Eclipse User |
|
|
|
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 05:36   |
Eclipse User |
|
|
|
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 12:27   |
Eclipse User |
|
|
|
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 #23434 is a reply to message #23391] |
Wed, 09 May 2007 05:30  |
Eclipse User |
|
|
|
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.
>
>
|
|
|
Goto Forum:
Current Time: Wed May 07 19:14:24 EDT 2025
Powered by FUDForum. Page generated in 0.06302 seconds
|