Class FileUploadExtension
- 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
-
- de.xima.fc.gui.component.fileupload.FileUploadExtension
-
- 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
,org.primefaces.component.api.Widget
public class FileUploadExtension extends org.primefaces.component.fileupload.FileUpload
Extension toFileUpload
that publishes all validation message as global messages as well (so that they can be shown in the global p:growl).- Since:
- 7.2.1
- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
-
Fields inherited from class org.primefaces.component.fileupload.FileUpload
BUTTON_BAR_CLASS, BUTTON_ICON_ONLY, CANCEL_BUTTON_CLASS, CHOOSE_BUTTON_CLASS, COMPONENT_TYPE, CONTAINER_CLASS, CONTAINER_CLASS_SIMPLE, CONTENT_CLASS, FILENAME_CLASS, FILES_CLASS, UPLOAD_BUTTON_CLASS, WITHDROPZONE_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
-
-
Constructor Summary
Constructors Constructor Description FileUploadExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
validateValue(javax.faces.context.FacesContext context, Object newValue)
-
Methods inherited from class org.primefaces.component.fileupload.FileUploadBase
getAccept, getAllowTypes, getCancelButtonStyleClass, getCancelButtonTitle, getCancelIcon, getCancelLabel, getChooseButtonStyleClass, getChooseButtonTitle, getChooseIcon, getDropZone, 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, getUploadButtonStyleClass, getUploadButtonTitle, getUploadIcon, getUploadLabel, getWidgetVar, isAuto, isDisabled, isDragDropSupport, isGlobal, isMultiple, isSequential, isSkinSimple, isValidateContentType, isVirusScan, setAccept, setAllowTypes, setAuto, setCancelButtonStyleClass, setCancelButtonTitle, setCancelIcon, setCancelLabel, setChooseButtonStyleClass, setChooseButtonTitle, setChooseIcon, setDisabled, setDragDropSupport, setDropZone, 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, setUploadButtonStyleClass, 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
-
-
-
-
Method Detail
-
validateValue
protected void validateValue(javax.faces.context.FacesContext context, Object newValue)
- Overrides:
validateValue
in classorg.primefaces.component.fileupload.FileUpload
-
-