filedownload « PrimeFaces « JSF Q&A





1. Primefaces filedownload error handling    stackoverflow.com

How to handle error with primefaces filedownload

<p:fileDownload value="#{testBean.file}" /> 
TestBean.java
    public StreamedContent getFile() {  
    if(selectedReport ==null){
        ...

2. p:fileDownload within an existing form    forum.primefaces.org

I have a form with some fields and validators. I've added a file upload which appends files to the form. Now I'd like to allow the user to see the files ...

3. Primefaces 2.2.1 - Tree and FileDownload problem    forum.primefaces.org

...

4. FileDownload issue    forum.primefaces.org

01 Jun 2011, 16:22 by themarcuz FileDownload issue Hi, I'm using PrimeFaces for a new project and it's quite an impressive set of components. Anyway, I have problem with "real world" ...

5. Problem with fileDownload    forum.primefaces.org

Code: @ManagedBean(name = "fileDownloadControllerBean") @ViewScoped public class FileDownloadControllerBean { public FileDownloadControllerBean() { } public StreamedContent getFile() { ...

6. p:fileDownload Bug?    forum.primefaces.org

18 Jul 2011, 12:28 by Weisshaar p:fileDownload Bug? Hello, i want to ask if there is a bug in the p:fileDownload. I use the fileDownload in a p:dataTable which is in ...

7. delete file after p:fileDownload executes    forum.primefaces.org

Hello!! I don't even know if this is possible, but I thought I would give it a shot. When using p:fileDownload it is downloading a file from a specific path, my ...

8. fileDownload and oracle bfile    forum.primefaces.org

16 Aug 2011, 15:54 by maxqua72 fileDownload and oracle bfile Hello, I'm trying to use fileDownload in a dataTable fetching records from a table in an oracle database table without great ...

9. Problems with p:filedownload    forum.primefaces.org

24 Aug 2011, 09:31 by julian Problems with p:filedownload We have a file download feature using p:filedownload and it works fine on Glassfish 3.1/Windows, but after porting our project onto Websphere ...





11. p:Filedownload file path    forum.primefaces.org

Hi, I'm having problems retrieving my file. My file is located under "WEB-INF/exportFiles", how to i get that into an inputstream? I've tried the following InputStream stream = FacesContext.getCurrentInstance().getExternalContext().getResourceAsStream("/exportFiles/file.pdf"); InputStream stream ...

12. Help me,how to dowload file ?    forum.primefaces.org

Hi,all.I have a problem.Could anyone tell me how to download a file using JSF+Primefaces?Does it config in web.xml?I don't know how to use it and i need the code.Please help me.Thanks! ...

13. Problem with PrimeFaces Filedownload Component    forum.primefaces.org

public class FileDownloadController { private StreamedContent file; ...

14. FileDownload on ajax request?    forum.primefaces.org

Hello, can someone tell me is it possible to get p:fileDownload work on ajax request? I need this because I need to control ajax status : onstart .. show ajaxloadingbar.gif onerror ...

15. PrimeFaces filedownload questions    forum.primefaces.org

import java.io.InputStream; import org.primefaces.model.DefaultStreamedContent; import org.primefaces.model.StreamedContent; public class FileDownloadController { private StreamedContent file; public FileDownloadController() { ...

16. Problem with fileDownload    forum.primefaces.org

@ManagedBean(name = "DownloadTokenController") @SessionScoped public class DownloadTokenController { @EJB private UserDataService userDataService; private StreamedContent file; ...





17. p:fileDownload error    forum.primefaces.org

>> << can Posts: 73 Joined: 09 Jan 2010, 03:56 11 May 2010, 13:44 by can p:fileDownload error Hi, I want to use p:fileDownload but i faces with this error page ...

18. p:fileDownload    forum.primefaces.org

14 Jun 2010, 06:49 by burferd p:fileDownload I really like this component, as it simplifies a part of my application over it's current implementation. Currently, I am using something with results ...

19. fileDownload issue    forum.primefaces.org

26 Jun 2010, 16:31 by trank fileDownload issue Hi I have a table linket to a List of StreamedContent object, when I try do download one file all thing works, but ...

20. p:fileDownload problem    forum.primefaces.org

03 Jul 2010, 04:41 by asermej p:fileDownload problem I am trying to download a file from my server to the client machine and having some problems with the FileDownloadController's getResourceAsStream() method. ...

21. Multiple p:fileDownload on one page mess up    forum.primefaces.org

30 Aug 2010, 10:33 by alfonx Multiple p:fileDownload on one page mess up Hi I can reproduce this problem with 2.1 and 2.2-M1-SNAPSHOT, Tomcat, FF and Chomium on latest Ubuntu. I ...

22. fileDownload doesn't work    forum.primefaces.org

10 Sep 2010, 18:31 by dacian275 fileDownload doesn't work I'm having a problem with the fileDownload tag. I followed the example in the PrimeFaces manual, but I get a null pointer ...

23. Problems with p:filedownload    forum.primefaces.org

Code:

24. nullpointer exception on filedownload    forum.primefaces.org

Hi all hi have a button rendered in a datatable that download a file. Now the button is always present but the download may fail because the file is passe by ...

25. filedownload on startup?    forum.primefaces.org

It's possible to call a fileDownoad on startup? I've tried to call clik of the button that contains fileDownload with javascript but with no result... Any idea?

26. FileDownload from Bean    forum.primefaces.org

I am trying to create a FileDownload from bean just like this commandLike and image. CommandLink cl = new CommandLink(); cl.setAjax(false); cl.setTitle(downloads.getDownload()); and GraphicImage img = new GraphicImage(); img.setAlt(descricao); They are ...

27. FileDownload - possible to not send a file upon error?    forum.primefaces.org

Not sure if the title makes a lot of sense, but I have a filedownload I'm trying to do, but the file that I want to serve up is coming from ...

28. filedownload and validation errors not cleared    forum.primefaces.org

My interface is this: a calendar component with required validation one or more command button with a file download when i have an error during validation or conversion it is correctly ...

29. p:fileDownload    forum.primefaces.org

Hello, it's only days I've embraced PrimeFaces and I am impressed with this library. Could not be happier! Now a small problem I'm facing... I'm trying to use p:fileDownload in a ...

30. FileDownload help me    forum.primefaces.org

I have File: ProjectWeb\web\FileUpload\image.gif Code Bean public class FileDownloadMode { private StreamedContent file; public FileDownloadMode() { InputStream stream = this.getClass().getResourceAsStream("FileUpload/image.gif"); file = new DefaultStreamedContent(stream,"FileUpload/", "image.gif"); } } Code HTML ...

31. Using fileDownload in menuitem    forum.primefaces.org

Hi, I'm trying to cause a pdf file download in a new window (or tab) from a menuitem. I can get it to work using a commandLink, but I don't know ...

32. Problem with fileDownload    forum.primefaces.org