-
1. Re: Fileupload - How to trigger automatic upload and progress bar
echofloripa Oct 17, 2011 12:31 PM (in response to echofloripa)Ok, I did this myself.
We copied the rich:upload component from richfaces, and encapsulated into our own component.
I then changed the javascript file as follows:
startUploading: function() {
this.state.css("display", "block");
this.addButton.style.display = 'none';
this.feedback.style.display = '';
this.link.html("");
this.input.attr("name", this.fileUpload.id);
this.model.state = ITEM_STATE.UPLOADING;
this.feedback=document.getElementById("feedback");
this.feedback.html(ITEM_STATE.UPLOADING);
this.uid = Math.random();
this.fileUpload.__submit();
if (this.fileUpload.progressBar) {
this.fileUpload.progressBar.setValue(0);
this.feedback.html(this.fileUpload.progressBarElement.detach());
var params = {};
params[UID_ALT] = this.uid;
this.fileUpload.progressBar.enable(params);
}
},
But I need the progress bar to appear on the same place of the button, or at the right side.
-
2. Re: Fileupload - How to trigger automatic upload and progress bar
maze_fr Dec 8, 2011 11:29 AM (in response to echofloripa)Here is what i did : http://community.jboss.org/thread/175920