public interface FieldHandler
| Modifier and Type | Method and Description |
|---|---|
static String |
getName(org.apache.sling.api.resource.Resource fieldResource) |
void |
handleField(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.resource.Resource fieldResource,
Map<String,Object> formData)
Handle the field being submitted.
|
boolean |
handles(org.apache.sling.api.resource.Resource fieldResource)
Returns true if the FieldHandler should handle the field resource
|
static boolean |
isRequired(org.apache.sling.api.resource.Resource fieldResource) |
boolean handles(org.apache.sling.api.resource.Resource fieldResource)
fieldResource - the field resource to handlevoid handleField(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.resource.Resource fieldResource,
Map<String,Object> formData)
throws FormException
request - the request for the form submissionfieldResource - the resource from which to get the field configurationformData - the Map to which to save the data for the fieldFormException - an exception occurs attempting to handle the field
including the field not being set or being invalidstatic boolean isRequired(org.apache.sling.api.resource.Resource fieldResource)
static String getName(org.apache.sling.api.resource.Resource fieldResource)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.