@Events(value="validate") public class Upload extends AbstractField
| Modifier and Type | Field and Description |
|---|---|
static String |
MULTIPART_ENCTYPE |
cssClass, decorator, defaultProvider, disabled, environment, fieldValidationSupport, formSupport, javaScriptSupport, label, request, resources, validationTracker| Constructor and Description |
|---|
Upload() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRender(MarkupWriter writer) |
protected void |
beginRender(MarkupWriter writer)
Render the upload tags.
|
UploadedFile |
getValue() |
boolean |
isRequired()
Returns false; most components do not support declarative validation.
|
protected void |
processSubmission(String controlName)
Method implemented by subclasses to actually do the work of processing the submission of the form.
|
decorateInsideField, getClientId, getControlName, getLabel, isDisabled, putPropertyNameIntoBeanValidationContext, removePropertyNameFromBeanValidationContext, setDecorator, setFormSupportpublic static final String MULTIPART_ENCTYPE
public Upload()
protected void processSubmission(String controlName)
AbstractFielddisabled.processSubmission in class AbstractFieldcontrolName - the control name of the rendered element (used to find the correct parameter in the request)protected void beginRender(MarkupWriter writer)
writer - Writer to output markuppublic boolean isRequired()
AbstractFieldisRequired in interface FieldisRequired in class AbstractFieldpublic void afterRender(MarkupWriter writer)
public UploadedFile getValue()
5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.