public class FileEntry extends FileEntryBase implements org.icefaces.component.Focusable
FileEntryBase.PropertyKeysCOMPONENT_TYPE, RENDERER_TYPE| Constructor and Description |
|---|
FileEntry() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addMessageFromRequired(javax.faces.context.FacesContext facesContext) |
protected void |
addMessagesFromResults(javax.faces.context.FacesContext facesContext) |
void |
broadcast(javax.faces.event.FacesEvent event) |
java.lang.String |
getCallbackEL() |
java.lang.String |
getFacesMessageLabel() |
java.lang.String |
getFocusedElementId() |
java.lang.String |
getProgressGroupName(javax.faces.context.FacesContext context) |
java.lang.String |
getProgressResourceName(javax.faces.context.FacesContext context) |
boolean |
isImmediateValidation()
Return the value of the
immediateValidation property. |
boolean |
isViaCallback() |
void |
processDecodes(javax.faces.context.FacesContext facesContext) |
void |
processValidators(javax.faces.context.FacesContext facesContext) |
void |
queueEvent(javax.faces.event.FacesEvent event) |
void |
reset() |
void |
setResults(FileEntryResults results)
Set the value of the
results property. |
protected void |
validateResults(javax.faces.context.FacesContext facesContext)
Invoked by processDecodes(FacesContext) or processValidators(FacesContext)
|
getAbsolutePath, getFamily, getFileEntryListener, getLabel, getMaxFileCount, getMaxFileCountMessage, getMaxFileSize, getMaxFileSizeMessage, getMaxTotalSize, getMaxTotalSizeMessage, getRelativePath, getRequiredMessage, getResults, getSize, getStyle, getStyleClass, getTabindex, isAutoUpload, isDisabled, isImmediate, isMessagePersistence, isMultiple, isPropertySet, isRequired, isUseOriginalFilename, isUseSessionSubdir, setAbsolutePath, setAutoUpload, setDisabled, setFileEntryListener, setImmediate, setImmediateValidation, setLabel, setMaxFileCount, setMaxFileCountMessage, setMaxFileSize, setMaxFileSizeMessage, setMaxTotalSize, setMaxTotalSizeMessage, setMessagePersistence, setMultiple, setRelativePath, setRequired, setRequiredMessage, setSize, setStyle, setStyleClass, setTabindex, setUseOriginalFilename, setUseSessionSubdir, setValueExpressionaddClientBehavior, addFacesListener, clearInitialState, decode, 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, markInitialState, processRestoreState, processSaveState, processUpdates, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, visitTreepublic void setResults(FileEntryResults results)
FileEntryBaseSet the value of the results property.
Contents: Maintains the results of the most recent file upload operation. From this, applications can retrieve the uploaded files' information, such as the file name, MIME content type, size, location where the file has been stored, and status of the success of the upload. If saving a FileEntryResults object or FileEntryResults.FileInfo objects, in your application, then save a clone of the objects, instead.
setResults in interface IFileEntrysetResults in class FileEntryBasepublic void reset()
public java.lang.String getCallbackEL()
public boolean isViaCallback()
public java.lang.String getProgressResourceName(javax.faces.context.FacesContext context)
public java.lang.String getProgressGroupName(javax.faces.context.FacesContext context)
protected void validateResults(javax.faces.context.FacesContext facesContext)
protected void addMessagesFromResults(javax.faces.context.FacesContext facesContext)
protected void addMessageFromRequired(javax.faces.context.FacesContext facesContext)
public java.lang.String getFacesMessageLabel()
public boolean isImmediateValidation()
FileEntryBaseReturn the value of the immediateValidation property.
Contents: Initially, validation of maxTotalSize, maxFileSize, maxFileCount, and required was fixed at APPLY_REQUEST_VALUES phase for technical reasons. Now that it can happen in PROCESS_VALIDATIONS, there are backwards compatibility constraints, so it's tied off of this new property instead of the typical immediate property. And this property's default value must give the pre-existing behaviour, not the newly available one. Validation must happen before the FileEntryEvent is broadcast and the fileEntryListener is invoked, so if immediate is true, then immediateValidation must be true as well. Baring that constraint, when immediateValidation is false, validation will occur in PROCESS_VALIDATIONS phase, otherwise when immediateValidation is true or unspecified, it will occur during APPLY_REQUEST_VALUES phase. Default = 'true'.
isImmediateValidation in interface IFileEntryisImmediateValidation in class FileEntryBasepublic void processDecodes(javax.faces.context.FacesContext facesContext)
processDecodes in class javax.faces.component.UIComponentBasepublic void processValidators(javax.faces.context.FacesContext facesContext)
processValidators in class javax.faces.component.UIComponentBasepublic void queueEvent(javax.faces.event.FacesEvent event)
queueEvent in class javax.faces.component.UIComponentBasepublic void broadcast(javax.faces.event.FacesEvent event)
broadcast in class javax.faces.component.UIComponentBasepublic java.lang.String getFocusedElementId()
getFocusedElementId in interface org.icefaces.component.FocusableCopyright 2014 ICEsoft Technologies Canada Corp., All Rights Reserved.