Monitor FileDownload Progress

UI Components for JSF
Post Reply
shubforall
Posts: 40
Joined: 13 Jan 2012, 09:24

13 Jan 2012, 11:19

I just tried to implement this in my project. I needed this feature.

http://blog.primefaces.org/?p=1616

This is not working. I explored the source and found that the cookie (primefaces.download) that you guys are using for monitor is not coming along with response because of this loadingDialogue is not hiding

is it because you guys are adding cookie after writing response.??...

here is the response I captured using firebug

Code: Select all

Response Headerspretty print

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: JSF/2.0
Content-Disposition: attachment;filename="books.jpg"
Content-Type: image/jpg
Transfer-Encoding: chunked
Date: Thu, 12 Jan 2012 05:59:04 GMT


Request Headersview source
Accept  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding              gzip, deflate
Accept-Language             en-gb,en;q=0.5
Connection        keep-alive
Cookie  JSESSIONID=9CBEE8830F1485307AD1419FAF7BE680
Host      localhost:8080
Referer                http://localhost:8080/ShoppingCartJSF/faces/dynamicTest.xhtml
User-Agent        Mozilla/5.0 (Windows NT 6.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
Request Headers From Upload Stream
Content-Length                155
Content-Type    application/x-www-form-urlencoded
I am using 3.1 snapshot.
PrimeFaces 5.2, Websphere liberty profile.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

13 Jan 2012, 11:30

Trunk has cookie added before streaming, try building PF from trunk to get this.

shubforall
Posts: 40
Joined: 13 Jan 2012, 09:24

13 Jan 2012, 11:36

optimus.prime wrote:Trunk has cookie added before streaming, try building PF from trunk to get this.
Thanks for your quick response. I will build and test.
PrimeFaces 5.2, Websphere liberty profile.

andyserrato
Posts: 7
Joined: 24 Jun 2015, 09:59

24 Jun 2015, 10:02

optimus.prime wrote:Trunk has cookie added before streaming, try building PF from trunk to get this.
same problem here using PF 4.0 and I don't know what trunks means.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 52 guests