rich:fileUpload删除停止按钮

时间:2014-09-12 06:33:57

标签: file-upload

我正在使用rich:fileupload来实现应用程序中的上传功能。我不想使用rich:fileupload标签提供的Stop按钮。 有没有办法删除(或隐藏)停止按钮。 我试图将stopButtonClass设置为display:none,它仍然显示一个小方块 - 可能是周围div的边框。

有谁知道如何完全删除停止按钮? 请指导我

<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>

1 个答案:

答案 0 :(得分:1)

我修复了完全隐藏rich:fileUpload的停止按钮的问题,通过设置display:none作为按钮边框属性。 下面是css的代码:

.rich-fileupload-button-border{ border:none ; }