Class FileUpload
- java.lang.Object
-
- javax.faces.component.UIComponent
-
- javax.faces.component.UIComponentBase
-
- javax.faces.component.UIOutput
-
- javax.faces.component.UIInput
-
- org.primefaces.component.fileupload.FileUploadBase
-
- org.primefaces.component.fileupload.FileUpload
-
- All Implemented Interfaces:
EventListener,javax.faces.component.EditableValueHolder,javax.faces.component.PartialStateHolder,javax.faces.component.StateHolder,javax.faces.component.TransientStateHolder,javax.faces.component.ValueHolder,javax.faces.event.ComponentSystemEventListener,javax.faces.event.FacesListener,javax.faces.event.SystemEventListenerHolder,Widget
public class FileUpload extends FileUploadBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.primefaces.component.fileupload.FileUploadBase
FileUploadBase.PropertyKeys
-
-
Field Summary
Fields Modifier and Type Field Description static StringBUTTON_BAR_CLASSstatic StringBUTTON_ICON_ONLYstatic StringCANCEL_BUTTON_CLASSstatic StringCHOOSE_BUTTON_CLASSstatic StringCOMPONENT_TYPEstatic StringCONTAINER_CLASSstatic StringCONTAINER_CLASS_SIMPLEstatic StringCONTENT_CLASSstatic StringFILENAME_CLASSstatic StringFILES_CLASSstatic StringUPLOAD_BUTTON_CLASS-
Fields inherited from class org.primefaces.component.fileupload.FileUploadBase
COMPONENT_FAMILY, DEFAULT_RENDERER
-
Fields inherited from class javax.faces.component.UIInput
ALWAYS_PERFORM_VALIDATION_WHEN_REQUIRED_IS_TRUE, CONVERSION_MESSAGE_ID, EMPTY_STRING_AS_NULL_PARAM_NAME, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME
-
Fields inherited from class javax.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
-
Fields inherited from interface org.primefaces.component.api.Widget
ATTR_WIDGET_VAR_PATTERN, CALLBACK_POST_CONSTRUCT, CALLBACK_POST_REFRESH, CALLBACK_PRE_DESTROY
-
-
Constructor Summary
Constructors Constructor Description FileUpload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbroadcast(javax.faces.event.FacesEvent event)protected voidvalidateValue(javax.faces.context.FacesContext context, Object newValue)-
Methods inherited from class org.primefaces.component.fileupload.FileUploadBase
getAccept, getAllowTypes, getCancelButtonTitle, getCancelIcon, getCancelLabel, getChooseButtonTitle, getChooseIcon, getFamily, getFileLimit, getFileLimitMessage, getInvalidFileMessage, getInvalidSizeMessage, getLabel, getListener, getMaxChunkSize, getMaxRetries, getMessageTemplate, getMode, getOnAdd, getOncancel, getOncomplete, getOnerror, getOnstart, getOnupload, getOnvalidationfailure, getPreviewWidth, getProcess, getRetryTimeout, getSizeLimit, getStyle, getStyleClass, getTitle, getUpdate, getUploadButtonTitle, getUploadIcon, getUploadLabel, getWidgetVar, isAuto, isDisabled, isDragDropSupport, isGlobal, isMultiple, isSequential, isSkinSimple, isValidateContentType, isVirusScan, setAccept, setAllowTypes, setAuto, setCancelButtonTitle, setCancelIcon, setCancelLabel, setChooseButtonTitle, setChooseIcon, setDisabled, setDragDropSupport, setFileLimit, setFileLimitMessage, setGlobal, setInvalidFileMessage, setInvalidSizeMessage, setLabel, setListener, setMaxChunkSize, setMaxRetries, setMessageTemplate, setMode, setMultiple, setOnAdd, setOncancel, setOncomplete, setOnerror, setOnstart, setOnupload, setOnvalidationfailure, setPreviewWidth, setProcess, setRetryTimeout, setSequential, setSizeLimit, setSkinSimple, setStyle, setStyleClass, setTitle, setUpdate, setUploadButtonTitle, setUploadIcon, setUploadLabel, setValidateContentType, setVirusScan, setWidgetVar
-
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, clearInitialState, compareValues, decode, getConvertedValue, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isRequired, isValid, markInitialState, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, restoreState, saveState, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validate
-
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, setConverter
-
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
-
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.faces.component.ValueHolder
getConverter, getLocalValue, setConverter
-
Methods inherited from interface org.primefaces.component.api.Widget
resolveWidgetVar, resolveWidgetVar
-
-
-
-
Field Detail
-
COMPONENT_TYPE
public static final String COMPONENT_TYPE
- See Also:
- Constant Field Values
-
CONTAINER_CLASS
public static final String CONTAINER_CLASS
- See Also:
- Constant Field Values
-
BUTTON_BAR_CLASS
public static final String BUTTON_BAR_CLASS
- See Also:
- Constant Field Values
-
CONTENT_CLASS
public static final String CONTENT_CLASS
- See Also:
- Constant Field Values
-
FILES_CLASS
public static final String FILES_CLASS
- See Also:
- Constant Field Values
-
CHOOSE_BUTTON_CLASS
public static final String CHOOSE_BUTTON_CLASS
- See Also:
- Constant Field Values
-
UPLOAD_BUTTON_CLASS
public static final String UPLOAD_BUTTON_CLASS
- See Also:
- Constant Field Values
-
CANCEL_BUTTON_CLASS
public static final String CANCEL_BUTTON_CLASS
- See Also:
- Constant Field Values
-
BUTTON_ICON_ONLY
public static final String BUTTON_ICON_ONLY
- See Also:
- Constant Field Values
-
CONTAINER_CLASS_SIMPLE
public static final String CONTAINER_CLASS_SIMPLE
- See Also:
- Constant Field Values
-
FILENAME_CLASS
public static final String FILENAME_CLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
broadcast
public void broadcast(javax.faces.event.FacesEvent event) throws javax.faces.event.AbortProcessingException- Overrides:
broadcastin classjavax.faces.component.UIComponentBase- Throws:
javax.faces.event.AbortProcessingException
-
validateValue
protected void validateValue(javax.faces.context.FacesContext context, Object newValue)- Overrides:
validateValuein classjavax.faces.component.UIInput
-
-