Hello,
I need to create a form with some data and one or more files to upload along with the data ..
I am using the <p: fileUpload> component, but in mode = "advanced" and multiple = "true" it shows the upload button which, if clicked, starts the upload ..
instead I want to load files and other data together by pressing the save button (see image)
thumbnail hosting
is it possible?
thanks!
p.s. in mode = "simple" the upload button is not shown, but I can see the list of files under the upload component ..
Remove/Disable upload button
If PF 11.0.0 you can do to hide the upload button. Not sure what version PF you are on but you can probably do the same with some simple Jquery to hide the upload button.
Code: Select all
uploadButtonStyleClass="ui-helper-hidden-accessible"
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
unfortunately i'm using PF 10...
i solved with jquery :
$("div[id='mFUpload:uploadComp']").find("div.ui-fileupload-buttonbar > button.ui-fileupload-upload").hide();
where mFUpload:uploadComp are :
mFUpload is the ID of the form component
uploadComp is the ID of the upload component
.. any suggestion is welcome ..
$("div[id='mFUpload:uploadComp']").find("div.ui-fileupload-buttonbar > button.ui-fileupload-upload").hide();
where mFUpload:uploadComp are :
mFUpload is the ID of the form component
uploadComp is the ID of the upload component
.. any suggestion is welcome ..
-
- Information
-
Who is online
Users browsing this forum: No registered users and 51 guests