public class FileUploadComponent extends Object
A Seam component that handles file uploads for RichFace's file upload component. This class is a thin wrapper around
FileUploadUIBean which is not a Seam component.
Currently this class is tightly coupled to RawConfigUIBean
which is specific to the raw config editor; however, this class can/should/will be generalized to support any file
upload which is implemented using RichFaces and Seam together.
| Constructor and Description |
|---|
FileUploadComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
completeUpload()
Invoked when the upload has completed and updates
selectedRawUIBean with the contents of the uploaded
file. |
org.richfaces.model.UploadItem |
getUploadItem() |
void |
listener(org.richfaces.event.UploadEvent event)
This is the upload listener that handles consuming the uploaded file.
|
void |
setUploadItem(org.richfaces.model.UploadItem uploadItem) |
public org.richfaces.model.UploadItem getUploadItem()
public void setUploadItem(org.richfaces.model.UploadItem uploadItem)
public void listener(org.richfaces.event.UploadEvent event)
throws Exception
event - Exceptionpublic void clear()
public void completeUpload()
selectedRawUIBean with the contents of the uploaded
file.Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.