@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, setFormSupport
public static final String MULTIPART_ENCTYPE
public Upload()
protected void processSubmission(String controlName)
AbstractField
disabled
.processSubmission
in class AbstractField
controlName
- 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()
AbstractField
isRequired
in interface Field
isRequired
in class AbstractField
public void afterRender(MarkupWriter writer)
public UploadedFile getValue()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.