Is there a way to hide the Primefaces fileUpload progress bar and buttons in advanced mode and auto mode?
Posted
by
Joe Roberts
on Stack Overflow
See other posts from Stack Overflow
or by Joe Roberts
Published on 2012-11-02T21:15:14Z
Indexed on
2012/11/03
11:01 UTC
Read the original article
Hit count: 2324
jsf-2
|primefaces
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:
© Stack Overflow or respective owner