Package org.openfaces.event

Examples of org.openfaces.event.FileAttachedEvent


            @Override
            public Object invoke(ELContext elContext, Object[] objects) {
                UploadCompletionEvent completionEvent = (UploadCompletionEvent) objects[0];
                final List<FileUploadItem> files = completionEvent.getFiles();
                for (FileUploadItem fileUploadItem : files) {
                    final FileAttachedEvent fileAttachedEvent = new FileAttachedEvent(fileAttachments,
                            new FileAttachment(fileUploadItem.getFile().getName(), fileUploadItem.getFileName(), fileUploadItem.getFile().length()));

                    fileAttachments.getFileAttachedListener().invoke(elContext, new Object[]{fileAttachedEvent});
                }
                return null//void
View Full Code Here

TOP

Related Classes of org.openfaces.event.FileAttachedEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.