p:fileUploader debuging problem

UI Components for JSF
Post Reply
can
Posts: 73
Joined: 09 Jan 2010, 03:56

10 May 2010, 18:08

Hi, i have a problem with fileuploader
i m using 2.0.1 and glassfish Enterprise Server v3
i want to debug my file upload codes but i cant achieve. although i put breakpoints on regarding lines

i guess there is a debuging problem. On the other hand i can debug another codes.

Bean (Document_View)

Code: Select all


    public void handleFileUpload(FileUploadEvent event) {

        FacesMessage msg = new FacesMessage("Succesful", event.getFile().getFileName() + " is uploaded.");
        FacesContext.getCurrentInstance().addMessage(null, msg);
    }
xhtml

Code: Select all

   <p:fileUpload fileUploadListener="#{Document_View.handleFileUpload}"    allowTypes="*.*;" description="Images"  ></p:fileUpload>

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

10 May 2010, 23:08

Is your code processed? Is the file uploaded? Or is it just you can't debug?

can
Posts: 73
Joined: 09 Jan 2010, 03:56

11 May 2010, 13:39

Hi,

I have resolved this problem. It was just about not importing regarding libraries "commos-fileupload "etc. But i forgot to reply :oops:

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

13 May 2010, 01:25

Glad to hear, enjoy fileupload :)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 49 guests