File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes p:fileDownload not working with h:head Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "p:fileDownload not working with h:head" Watch "p:fileDownload not working with h:head" New topic

p:fileDownload not working with h:head

Zainab Haf

Joined: Sep 17, 2012
Posts: 11
i am facing a problem of using p:fileDownload with page having h:head. I dont know that h:head is linked or affects this p:download tag or not but after checking every single thing in the page i came to know that if i remove the h:head tag from the page the code

works fine with downloading (also let me add that it also works fine with only head)but if i add h:head, the download button just loads on same page and doesnt shows the download popup window. I cant work without h:head as i need the css on my page without it everything on page is jumbled up and goes messy..please see the complete page code below and help me identify what i am doing wrong here or what is causing this strange problem.
I agree. Here's the link:
subject: p:fileDownload not working with h:head
It's not a secret anymore!