How to add trinidad progress Indicator with trinidad file upload component

View: New views
7 Messages — Rating Filter:   Alert me  

How to add trinidad progress Indicator with trinidad file upload component

by AjayMundra :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

How to add trinidad progress Indicator with trinidad file upload component

i'm trying to add a progressIndicator with trinidad inputFile component, but i do not find any document on how to do this.

Please help!


Ajay Mundra

Re: How to add trinidad progress Indicator with trinidad file upload component

by Andrew Robinson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

HTTP POST operations are not streaming. The server obtains the full
request after the POST is complete. There is no way with HTTP to
determine any kind of progress for an upload. You will just have to
show a please wait animation or something.

On Fri, May 9, 2008 at 9:05 AM, AjayMundra <ajay.mundra@...> wrote:

>
> How to add trinidad progress Indicator with trinidad file upload component
>
> i'm trying to add a progressIndicator with trinidad inputFile component, but
> i do not find any document on how to do this.
>
> Please help!
>
>
> Ajay Mundra
> --
> View this message in context: http://www.nabble.com/How-to-add-trinidad-progress-Indicator-with-trinidad-file-upload-component-tp17150076p17150076.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Re: How to add trinidad progress Indicator with trinidad file upload component

by Stephen Friedrich-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Huh? That's plain wrong.
There are many examples out there that use ajax to show a progress bar.
The servlet receives bytes as a stream.
It's tricky, but it can be done and has been done.

See for example
http://www.codeguru.com/java/article.php/c13913/

Andrew Robinson wrote:

> HTTP POST operations are not streaming. The server obtains the full
> request after the POST is complete. There is no way with HTTP to
> determine any kind of progress for an upload. You will just have to
> show a please wait animation or something.
>
> On Fri, May 9, 2008 at 9:05 AM, AjayMundra <ajay.mundra@...> wrote:
>> How to add trinidad progress Indicator with trinidad file upload component
>>
>> i'm trying to add a progressIndicator with trinidad inputFile component, but
>> i do not find any document on how to do this.
>>
>> Please help!
>>
>>
>> Ajay Mundra
>> --
>> View this message in context: http://www.nabble.com/How-to-add-trinidad-progress-Indicator-with-trinidad-file-upload-component-tp17150076p17150076.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>


Re: How to add trinidad progress Indicator with trinidad file upload component

by Scott O'Bryan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Umm.  I think you're both right.  I think Andrew was referring to
Trinidad's file upload and a Trinidad progress Indicator.  You can't do
this with the functionality as written.  Certainly it's possible to do
it from a browser/AJAX perspective, but not currently from a Trinidad
perspective.

That said, if someone wants to add the capability, have at it..

:)

Scott


Stephen Friedrich wrote:

> Huh? That's plain wrong.
> There are many examples out there that use ajax to show a progress bar.
> The servlet receives bytes as a stream.
> It's tricky, but it can be done and has been done.
>
> See for example
> http://www.codeguru.com/java/article.php/c13913/
>
> Andrew Robinson wrote:
>> HTTP POST operations are not streaming. The server obtains the full
>> request after the POST is complete. There is no way with HTTP to
>> determine any kind of progress for an upload. You will just have to
>> show a please wait animation or something.
>>
>> On Fri, May 9, 2008 at 9:05 AM, AjayMundra <ajay.mundra@...>
>> wrote:
>>> How to add trinidad progress Indicator with trinidad file upload
>>> component
>>>
>>> i'm trying to add a progressIndicator with trinidad inputFile
>>> component, but
>>> i do not find any document on how to do this.
>>>
>>> Please help!
>>>
>>>
>>> Ajay Mundra
>>> --
>>> View this message in context:
>>> http://www.nabble.com/How-to-add-trinidad-progress-Indicator-with-trinidad-file-upload-component-tp17150076p17150076.html 
>>>
>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>
>>>
>


Re: How to add trinidad progress Indicator with trinidad file upload component

by Matt Cooper :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Off the top of my head, the only ones I've seen used browser plug-ins
to perform the upload rather than input type="file".  I don't recall
ever seeing any using open standards-based mechanisms.  In any case, I
think this type of functionality would be quite useful if added.

Regards,
Matt

On Fri, May 9, 2008 at 3:50 PM, Scott O'Bryan <darkarena@...> wrote:

> Umm.  I think you're both right.  I think Andrew was referring to Trinidad's
> file upload and a Trinidad progress Indicator.  You can't do this with the
> functionality as written.  Certainly it's possible to do it from a
> browser/AJAX perspective, but not currently from a Trinidad perspective.
>
> That said, if someone wants to add the capability, have at it..
>
> :)
>
> Scott
>
>
> Stephen Friedrich wrote:
>>
>> Huh? That's plain wrong.
>> There are many examples out there that use ajax to show a progress bar.
>> The servlet receives bytes as a stream.
>> It's tricky, but it can be done and has been done.
>>
>> See for example
>> http://www.codeguru.com/java/article.php/c13913/
>>
>> Andrew Robinson wrote:
>>>
>>> HTTP POST operations are not streaming. The server obtains the full
>>> request after the POST is complete. There is no way with HTTP to
>>> determine any kind of progress for an upload. You will just have to
>>> show a please wait animation or something.
>>>
>>> On Fri, May 9, 2008 at 9:05 AM, AjayMundra <ajay.mundra@...> wrote:
>>>>
>>>> How to add trinidad progress Indicator with trinidad file upload
>>>> component
>>>>
>>>> i'm trying to add a progressIndicator with trinidad inputFile component,
>>>> but
>>>> i do not find any document on how to do this.
>>>>
>>>> Please help!
>>>>
>>>>
>>>> Ajay Mundra
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/How-to-add-trinidad-progress-Indicator-with-trinidad-file-upload-component-tp17150076p17150076.html
>>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>
>
>

Re: How to add trinidad progress Indicator with trinidad file upload component

by Andrew Robinson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dang it, I think I was thinking of the fact that HTTP requires that
the incoming stream is processed before the output can be obtained on
the client. For example, you  close the input stream of a url
connection before getting the output stream. Sorry.

On Fri, May 9, 2008 at 3:07 PM, Stephen Friedrich <trinidad@...> wrote:

> Huh? That's plain wrong.
> There are many examples out there that use ajax to show a progress bar.
> The servlet receives bytes as a stream.
> It's tricky, but it can be done and has been done.
>
> See for example
> http://www.codeguru.com/java/article.php/c13913/
>
> Andrew Robinson wrote:
>>
>> HTTP POST operations are not streaming. The server obtains the full
>> request after the POST is complete. There is no way with HTTP to
>> determine any kind of progress for an upload. You will just have to
>> show a please wait animation or something.
>>
>> On Fri, May 9, 2008 at 9:05 AM, AjayMundra <ajay.mundra@...> wrote:
>>>
>>> How to add trinidad progress Indicator with trinidad file upload
>>> component
>>>
>>> i'm trying to add a progressIndicator with trinidad inputFile component,
>>> but
>>> i do not find any document on how to do this.
>>>
>>> Please help!
>>>
>>>
>>> Ajay Mundra
>>> --
>>> View this message in context:
>>> http://www.nabble.com/How-to-add-trinidad-progress-Indicator-with-trinidad-file-upload-component-tp17150076p17150076.html
>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>
>>>
>
>

Re: How to add trinidad progress Indicator with trinidad file upload component

by Scott O'Bryan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Still won't work using Trinidad's current framework.  :)

Andrew Robinson wrote:

> Dang it, I think I was thinking of the fact that HTTP requires that
> the incoming stream is processed before the output can be obtained on
> the client. For example, you  close the input stream of a url
> connection before getting the output stream. Sorry.
>
> On Fri, May 9, 2008 at 3:07 PM, Stephen Friedrich <trinidad@...> wrote:
>  
>> Huh? That's plain wrong.
>> There are many examples out there that use ajax to show a progress bar.
>> The servlet receives bytes as a stream.
>> It's tricky, but it can be done and has been done.
>>
>> See for example
>> http://www.codeguru.com/java/article.php/c13913/
>>
>> Andrew Robinson wrote:
>>    
>>> HTTP POST operations are not streaming. The server obtains the full
>>> request after the POST is complete. There is no way with HTTP to
>>> determine any kind of progress for an upload. You will just have to
>>> show a please wait animation or something.
>>>
>>> On Fri, May 9, 2008 at 9:05 AM, AjayMundra <ajay.mundra@...> wrote:
>>>      
>>>> How to add trinidad progress Indicator with trinidad file upload
>>>> component
>>>>
>>>> i'm trying to add a progressIndicator with trinidad inputFile component,
>>>> but
>>>> i do not find any document on how to do this.
>>>>
>>>> Please help!
>>>>
>>>>
>>>> Ajay Mundra
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/How-to-add-trinidad-progress-Indicator-with-trinidad-file-upload-component-tp17150076p17150076.html
>>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>>        
>>