2012-06-01 60 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 { 
    
相关问题