// Queue the FileUploadEvent so that each uploaded file can be handled individually with an
// ActionListener.
for (UploadedFile uploadedFile : uploadedFiles) {
com.liferay.faces.bridge.model.UploadedFile bridgeUploadedFile = new UploadedFileBridgeImpl(
uploadedFile);
FileUploadEvent fileUploadEvent = new FileUploadEvent(uiComponent, bridgeUploadedFile);
uiComponent.queueEvent(fileUploadEvent);
}
}