Class Upload
java.lang.Object
org.apache.tapestry5.corelib.base.AbstractField
org.apache.tapestry5.upload.components.Upload
- All Implemented Interfaces:
ClientElement,Field
A component to upload a file.
-
Field Summary
FieldsFields inherited from class org.apache.tapestry5.corelib.base.AbstractField
cssClass, decorator, defaultProvider, disabled, environment, fieldValidationSupport, formSupport, javaScriptSupport, label, request, resources, validationTracker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterRender(MarkupWriter writer) protected voidbeginRender(MarkupWriter writer) Render the upload tags.getValue()booleanReturns false; most components do not support declarative validation.protected voidprocessSubmission(String controlName) Method implemented by subclasses to actually do the work of processing the submission of the form.Methods inherited from class org.apache.tapestry5.corelib.base.AbstractField
decorateInsideField, getClientId, getControlName, getLabel, isDisabled, putPropertyNameIntoBeanValidationContext, removePropertyNameFromBeanValidationContext, setDecorator, setFormSupport
-
Field Details
-
MULTIPART_ENCTYPE
- See Also:
-
-
Constructor Details
-
Upload
public Upload()
-
-
Method Details
-
processSubmission
Description copied from class:AbstractFieldMethod implemented by subclasses to actually do the work of processing the submission of the form. The element's controlName property will already have been set. This method is only invoked if the field is notdisabled.- Specified by:
processSubmissionin classAbstractField- Parameters:
controlName- the control name of the rendered element (used to find the correct parameter in the request)
-
beginRender
Render the upload tags.- Parameters:
writer- Writer to output markup
-
isRequired
Description copied from class:AbstractFieldReturns false; most components do not support declarative validation.- Specified by:
isRequiredin interfaceField- Overrides:
isRequiredin classAbstractField- Returns:
- true if a non-blank value is required for the field
- Since:
- 5.4
-
afterRender
-
getValue
-