Is there a browse button in JSF?

前端 未结 2 1065
不知归路
不知归路 2021-01-23 17:45

I need this for the import functionality of the web-based app im creating. I need to get the path of a text file the user wants to be imported in order to egt the data inside th

相关标签:
2条回答
  • 2021-01-23 17:59

    There is no such component in standard JSF. However, there are several component libraries that offer file selection:

    • PrimeFaces <p:fileUpload>
    • RichFaces <rich:fileUpload>
    • IceFaces <ice:inputFile>
    • Tomahawk <t:inputFileUpload>
    • etc. - basically every JSF component framework has such a component
    0 讨论(0)
  • 2021-01-23 18:04

    You could check this out - http://livedemo.exadel.com/richfaces-demo/richfaces/fileUpload.jsf, and build yours accordingly.

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