Update attribute and onComplete in p:fileUpload doesnt work in IE10. In IE 9 sizeLimit attribute is ignored. Has anyone came across this situation.
I have tried ca
This is fixed in the new 4.0 Primefaces release, however if you are still on an older version of Primefaces you might still need a workaround.
I was able to update after a file upload by using the onstart attribute which does still work in IE 10.
Create a hidden field that contains a value that gets updated as part of the method called from the fileUploadListener. Then set the onstart attribute of the p:fileUpload to something like the following:
function checkUpload() {
//this should call a p:remoteCommand that refreshes your hidden value
refreshHiddenValue();
var hiddenFieldValue = $('#hiddenFieldId').val();
if(hiddenFieldValue) {
//this should call a p:remoteCommand that refreshes the
//sections you want refreshed after the upload has finished
refreshSections();
}
else {
setTimeout(checkUpload, 1000);
}
}