What others library need to include to make fileUpload work

UI Components for JSF
Post Reply
KingdomHeart
Posts: 280
Joined: 25 Jun 2010, 01:18

07 Jan 2011, 06:18

I forgot what other jar file that I need to include to make fileUpload work? It like io.jar ...

Is it posible to do this?

Code: Select all

                    <p:fileUpload fileUploadListener="#{EditNetwork.handleFileUpload}" update="msgs">
                        <f:param name="location" value="TestLocation"/>
                    </p:fileUpload>

Code: Select all

    public void handleFileUpload(FileUploadEvent event, String location) {
        FacesMessage msg = new FacesMessage("Succesful", event.getFile().getFileName() + " is uploaded. Location: " + location);
        FacesContext.getCurrentInstance().addMessage(null, msg);  

    }

Mojarra 2.1.10, Glassfish 3.1, Tomcat 7, Primeface 3.3.1
IE 6-8, FireFox 10-13
MAC OSX Lion, Windows XP, 7

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 45 guests