Atul
Atul

Reputation: 1590

<rich:fileUpload> component controls issues in RichFaces 4.3

Versions:

Problem:

There are two issues with the <rich:fileUpload> component in v4.3 of RichFaces which work fine in v3.0:

  1. The autoclear="true" attribute does not seem to be working. I have referred below two links (neither of which seem to say anything about "autoclear" attribute):
  2. The stop button doesn't show up after file is uploaded using upload button.

Code:

<rich:fileUpload maxFilesQuantity="5" fileUploadListener="#{bean.uploadFile}" 
               deleteLabel="RemoveNow" addLabel="BrowseFiles" uploadLabel="AttachFile" autoclear="true">
                   <a4j:ajax event="uploadcomplete" execute="@none" render="filePanel" />
 </rich:fileUpload>

Upvotes: 0

Views: 803

Answers (1)

Makhiel
Makhiel

Reputation: 3884

Those things are not implemented in RF 4.

If you need to clear the list after upload you can do something like this:

<a4j:ajax event="uploadcomplete" 
    oncomplete="#{rich:component('fileUpload')}.clearButton.triggerHandler('click')" … />

Upvotes: 2

Related Questions