JSF Configuration of the file upload filter

前端 未结 1 1686
一生所求
一生所求 2020-12-11 09:28

I am trying to use fileUpload component. As I read from primefaces user guide, I have to configure the fileUpload filter.


    

        
相关标签:
1条回答
  • 2020-12-11 09:55

    The PrimeFaces user guide (page 14) lists the required dependencies for p:fileUpload:

    • commons-fileupload
    • commons-io

    Seems that you are missing the first dependency.

    You can either download and place those files into /WEB-INF/lib or - if your project is a maven project - add the following dependencies to your pom.xml, <dependencies> section:

    <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-io</artifactId>
        <version>1.3.2</version>
    </dependency>
    <dependency>
        <groupId>commons-fileupload</groupId>
        <artifactId>commons-fileupload</artifactId>
        <version>1.2.2</version>
    </dependency>
    

    Versions may differ, currently I have this in my pom.xml

    0 讨论(0)
提交回复
热议问题