2012-06-01 104 views

回答

2
  1. 首先複製fileupload.js到您的應用程序並添加相同的在你的頁面如下圖所示:

    <script type="text/javascript" src="#{facesContext.externalContext.requestContextPath}/js/fileupload.js"></script> 
    
  2. 二去fileUpload.js,找到一個叫__updateButtons功能和更新首先如果是用this.__startUpload()檢查項目長度;

    像下面一樣。

    __updateButtons: function() { 
    
    if (!this.loadableItem && this.list.children(".rf-fu-itm").size()) { 
    
        if (this.items.length) { 
    
         //this.uploadButton.css("display", "inline-block"); 
    
         this.__startUpload();// New - Added the immediate upload to work. 
    
        } else { 
    
相關問題