[英]rich:fileUpload remove Stop button
I am using rich:fileupload to implement upload functionality in application.I don't want to use Stop button provided by rich:fileupload tag. 我正在使用rich:fileupload在应用程序中实现上传功能。我不想使用rich:fileupload标签提供的停止按钮。 Is there any way to remove (or hide) Stop button .
有什么方法可以删除(或隐藏)“停止”按钮。 I tried to set stopButtonClass to display: none, it still shows a small square - probably the border of the surrounding div.
我试图将stopButtonClass设置为显示:没有,它仍然显示一个小方块-可能是周围div的边框。
Does anyone know how to completely remove the Stop Button? 有谁知道如何完全删除停止按钮? Please guide me on
请指导我
<rich:fileUpload id="upload" fileUploadListener="#{fileUploadBean.listener}" maxFilesQuantity="#{fileUploadBean.uploadsAvailable}"
acceptedTypes="txt,ppt,jpg,doc,xls, gif, bmp,pdf" ontyperejected="alert('Only TXT,PPT,DOC,XLS JPG, GIF,PDF and BMP files are accepted');"
addControlLabel="Browse" listHeight="50px" listWidth="auto" onsizerejected="alert('You can only upload upto 10MB files')" autoclear="false"
immediateUpload="#{fileUploadBean.autoUpload}" allowFlash="#{fileUploadBean.useFlash}"
stopButtonClass="rich-fileupload-ico-stop" clearAllControlLabel="" clearControlLabel="" stopControlLabel=""
cleanButtonClass="rich-fileupload-ico-clear" cleanButtonClassDisabled="rich-fileupload-ico-clear" stopButtonClassDisabled="rich-fileupload-ico-stop">
<a4j:support event="onuploadcomplete" reRender="uploadInfo" />
<a4j:support event="onuploadcanceled" reRender="uploadInfo" />
</rich:fileUpload>
I have fixed issue of completely hiding stop button of rich:fileUpload by setting display:none for button border property. 我通过为按钮边框属性设置display:none解决了完全隐藏rich:fileUpload的停止按钮的问题。 Below is code for css :
下面是css的代码:
.rich-fileupload-button-border{ border:none ; }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.