public class AttachmentsPage extends BaseCompositeViewControlPageBean implements IPostPageComponentPhaseListener
BaseViewBean.ClientIdsContentProvider
fCompositeNamingContainer
clientIds, initialized
fExpireWithPageFlow
DATA_BINDING_CLIENTS, EMPTY_RESOURCES, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders
Constructor and Description |
---|
AttachmentsPage() |
Modifier and Type | Method and Description |
---|---|
String |
addAttachmentsButton_action()
Action Event Handler for the control with id='addAttachmentsButton'
|
protected void |
afterInvokeApplication()
Clients should overwrite this method to perform custom actions after an
action method is invoked.
|
void |
fileContentTypeValidator(FacesContext context,
UIComponent component,
Object value)
Validator for checking the content type of a file
|
String |
getAcceptContentTypes() |
String |
getAcceptContentTypesMessage() |
String |
getAcceptFileExtensions() |
String |
getAcceptFileExtensionsMessage() |
String |
getAddEncoding1() |
String |
getAddEncoding2() |
String |
getAddEncoding3() |
org.apache.commons.fileupload.FileItem |
getAddFileItem1() |
org.apache.commons.fileupload.FileItem |
getAddFileItem2() |
org.apache.commons.fileupload.FileItem |
getAddFileItem3() |
IAttachmentsProvider |
getAttachmentsProvider() |
SelectableListTableContentProvider |
getAttachmentsTableContentProvider() |
ISelectItemGroupProvider |
getAvailableCharacterEncodings() |
Validator |
getCustomValidator() |
String |
getDefaultEncoding() |
String |
getDownloadTargetWindow() |
Long |
getMaxFileSize() |
String |
getMaxFileSizeMessage() |
PhaseId |
getPostPagePhaseId() |
String |
getUpdateEncoding() |
org.apache.commons.fileupload.FileItem |
getUpdateFileItem() |
String |
getUpdateURI() |
boolean |
isReadOnly() |
void |
postPageAfterPhase(PhaseEvent e) |
void |
postPageBeforePhase(PhaseEvent e) |
String |
removeSelectedAttachments_action()
Action Event Handler for the control with id='removeSelectedAttachments'
|
void |
setAccept(String acceptContentTypes)
Sets the CSV of mime types that are allowed to be added to the attachment provider
|
void |
setAcceptContentTypesMessage(String acceptMessage)
Sets the Message to display of the accept content type validation fails
|
void |
setAcceptFileExtensions(String acceptFileExtensions)
Sets the CSV of file extensions that are allowed to be added to the attachment provider
|
void |
setAcceptFileExtensionsMessage(String acceptMessage)
Sets the Message to display of the accept file extensions validation fails
|
void |
setAddEncoding1(String addEncoding1) |
void |
setAddEncoding2(String addEncoding2) |
void |
setAddEncoding3(String addEncoding3) |
void |
setAddFileItem1(org.apache.commons.fileupload.FileItem addFileItem1) |
void |
setAddFileItem2(org.apache.commons.fileupload.FileItem addFileItem2) |
void |
setAddFileItem3(org.apache.commons.fileupload.FileItem addFileItem3) |
void |
setAttachmentsProvider(IAttachmentsProvider attachmentsProvider) |
void |
setCustomValidator(Validator customValidator) |
void |
setDefaultEncoding(String defaultEncoding) |
void |
setDownloadTargetWindow(String downloadTargetWindow) |
void |
setMaxFileSize(Long maxFileSize) |
void |
setMaxFileSizeMessage(String maxFileSizeMessage) |
void |
setReadOnly(boolean readOnly) |
void |
setUpdateEncoding(String updateEncoding) |
void |
setUpdateFileItem(org.apache.commons.fileupload.FileItem updateFileItem) |
void |
setUpdateURI(String updateURI) |
String |
updateAttachmentButton_action()
Action Event Handler for the control with id='updateAttachmentButton'
|
findComponentInRoot, getClientIds, getCompositeViewAbsoluteControlId, getCompositeViewControlId, getCompositeViewNamingContainer, getPropertyOrBindingValue, setCompositeViewNamingContainer
afterApplyRequestValues, afterPhase, afterProcessValidations, afterRenderResponse, afterRestoreView, afterUpdateModelValues, beforeApplyRequestValues, beforeInvokeApplication, beforePhase, beforeProcessValidations, beforeRenderResponse, beforeRestoreView, beforeUpdateModelValues, callInitialize, findComponent, getApplicationScope, getPhaseId, getRealPath, getRequestParam, getRequestScope, getSessionScope, gotoPage, gotoPage, initialize, isAsyncRequest, preRenderResponse, release, resetPageFlowStorage, streamFileDataToResponse
getExpireWithPageFlow, setExpireWithPageFlow, valueBound, valueUnbound
createMethodBinding, createMethodExpression, createValueBinding, createValueExpression, createValueExpression, error, error, error, error, error, getBean, getFacesContext, getLocale, getResourceInputStream, getResources, getResourcesProvider, getRootCause, getStackTrace, getTreeAttribute, isUserInRole, log, log, log, putTreeAttribute, resetDataBindingClients, resolveDataBinding, resolveDataBinding, resolveExpression, setValue
protected SelectableListTableContentProvider fAttachmentsTableContentProvider
protected transient CharacterEncodingSelectItemGroupProvider fCharacterEncodingSelectItemGroupProvider
protected transient org.apache.commons.fileupload.FileItem fAddFileItem1
protected transient String fAddEncoding1
protected transient org.apache.commons.fileupload.FileItem fAddFileItem2
protected transient String fAddEncoding2
protected transient org.apache.commons.fileupload.FileItem fAddFileItem3
protected transient String fAddEncoding3
protected transient String fUpdateURI
protected transient org.apache.commons.fileupload.FileItem fUpdateFileItem
protected transient String fUpdateEncoding
protected String fAcceptContentTypes
protected String fAcceptContentTypesMessage
protected String fAcceptFileExtensions
protected String fAcceptFileExtensionsMessage
protected Long fMaxFileSize
protected String fMaxFileSizeMessage
protected Validator fCustomValidator
protected String fDefaultEncoding
protected IAttachmentsProvider fAttachmentsProvider
protected Boolean fReadOnly
protected String fDownloadTargetWindow
protected void afterInvokeApplication()
BaseViewBean
afterInvokeApplication
in class BaseViewBean
public PhaseId getPostPagePhaseId()
getPostPagePhaseId
in interface IPostPageComponentPhaseListener
public void postPageAfterPhase(PhaseEvent e)
postPageAfterPhase
in interface IPostPageComponentPhaseListener
public void postPageBeforePhase(PhaseEvent e)
postPageBeforePhase
in interface IPostPageComponentPhaseListener
public String getDownloadTargetWindow()
public void setDownloadTargetWindow(String downloadTargetWindow)
public IAttachmentsProvider getAttachmentsProvider()
public void setAttachmentsProvider(IAttachmentsProvider attachmentsProvider)
attachmentsProvider
- the attachmentsProvider to setpublic SelectableListTableContentProvider getAttachmentsTableContentProvider()
public String removeSelectedAttachments_action()
public String getDefaultEncoding()
public void setDefaultEncoding(String defaultEncoding)
defaultEncoding
- the defaultEncoding to setpublic String getUpdateEncoding()
public void setUpdateEncoding(String updateEncoding)
updateEncoding
- the updateEncoding to setpublic org.apache.commons.fileupload.FileItem getUpdateFileItem()
public void setUpdateFileItem(org.apache.commons.fileupload.FileItem updateFileItem)
updateFileItem
- the updateFileItem to setpublic String getUpdateURI()
public void setUpdateURI(String updateURI)
updateURI
- the updateURI to setpublic String getAddEncoding1()
public void setAddEncoding1(String addEncoding1)
addEncoding1
- the addEncoding1 to setpublic String getAddEncoding2()
public void setAddEncoding2(String addEncoding2)
addEncoding2
- the addEncoding2 to setpublic String getAddEncoding3()
public void setAddEncoding3(String addEncoding3)
addEncoding3
- the addEncoding3 to setpublic org.apache.commons.fileupload.FileItem getAddFileItem1()
public void setAddFileItem1(org.apache.commons.fileupload.FileItem addFileItem1)
addFileItem1
- the addFileItem1 to setpublic org.apache.commons.fileupload.FileItem getAddFileItem2()
public void setAddFileItem2(org.apache.commons.fileupload.FileItem addFileItem2)
addFileItem2
- the addFileItem2 to setpublic org.apache.commons.fileupload.FileItem getAddFileItem3()
public void setAddFileItem3(org.apache.commons.fileupload.FileItem addFileItem3)
addFileItem3
- the addFileItem3 to setpublic boolean isReadOnly()
public void setReadOnly(boolean readOnly)
readOnly
- the readOnly to setpublic ISelectItemGroupProvider getAvailableCharacterEncodings()
public String addAttachmentsButton_action()
public String updateAttachmentButton_action()
public String getAcceptContentTypes()
public void setAccept(String acceptContentTypes)
accept
- the csv of mime types to allow to be addedpublic String getAcceptContentTypesMessage()
public void setAcceptContentTypesMessage(String acceptMessage)
accept
- the csv of mimetypes to allow to be addedpublic String getAcceptFileExtensions()
public void setAcceptFileExtensions(String acceptFileExtensions)
accept
- the csv of file extensions to allow to be addedpublic String getAcceptFileExtensionsMessage()
public void setAcceptFileExtensionsMessage(String acceptMessage)
accept
- the csv of file extensions to allow to be addedpublic Long getMaxFileSize()
public void setMaxFileSize(Long maxFileSize)
maxFileSize
- the maxFileSize to setpublic String getMaxFileSizeMessage()
public void setMaxFileSizeMessage(String maxFileSizeMessage)
maxFileSizeMessage
- the maxFileSizeMessage to setpublic Validator getCustomValidator()
public void setCustomValidator(Validator customValidator)
customValidator
- the customValidator to setpublic void fileContentTypeValidator(FacesContext context, UIComponent component, Object value)