[英]jsf primefaces fileupload on submit
Does anyone know how I can upload multiple files with primefaces ( http://www.primefaces.org/showcase/ui/fileUploadMultiple.jsf ) when I click my own submit button? 当我点击我自己的提交按钮时,有谁知道如何使用primefaces( http://www.primefaces.org/showcase/ui/fileUploadMultiple.jsf )上传多个文件? The upload-button there should not be visible, because I want to chose the upload-time on my own.
那里的上传按钮不应该是可见的,因为我想自己选择上传时间。
I have multiple pm-fileupload components in my document, so I want to upload them all together. 我的文档中有多个pm-fileupload组件,所以我想将它们全部上传到一起。
is there a way? 有办法吗? Or must I use the old browser-upload?
或者我必须使用旧的浏览器上传?
Use multiple <p:fileUpload mode="simple">
generated by a <ui:repeat>
or <h:dataTable>
. 使用由
<ui:repeat>
或<h:dataTable>
生成的多个<p:fileUpload mode="simple">
<h:dataTable>
。
The <p:fileUpload mode="advanced">
indeed isn't suitable for this requirement, or you must turn on automatic immediate upload on select by adding auto="true"
. <p:fileUpload mode="advanced">
确实不适合此要求,或者您必须通过添加auto="true"
启用select上的自动立即上传。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.