Is there a way to hide the Primefaces fileUpload progress bar and buttons in advanced mode and auto mode?
- by Joe Roberts
Is there a way to hide the Primefaces fileUpload progress bar and buttons in advanced mode and auto mode?
Here is the code that I am using:
<p:fileUpload id="scriptUpload"
widgetVar="importDevicesWidget"
fileUploadListener="#{scriptUploadBean.handleFileUpload}"
auto="true"
label="Choose.."
mode="advanced"
update=":infoMessages"
sizeLimit="8192"
allowTypes="/(\.|\/)(txt)$/"
onstart="clearInvalidFileMsg();$('#progress').show();"
oncomplete="clearInvalidFileMsg();$('#progress').hide();importDevicesDialogWidget.hide()"/>
The problem is that it makes no sense for the buttons that appear next to the progress bar for each file to be there as the mode is auto so the upload already started!
Here is a screen shot: