Reputation: 1590
Versions:
Problem:
There are two issues with the <rich:fileUpload>
component in v4.3 of RichFaces which work fine in v3.0:
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):
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
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