public class TextareaHandler extends Object implements FieldHandler
Constructor and Description |
---|
TextareaHandler() |
Modifier and Type | Method and Description |
---|---|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, isRequired
public boolean handles(org.apache.sling.api.resource.Resource fieldResource)
FieldHandler
handles
in interface FieldHandler
fieldResource
- the field resource to handlepublic void handleField(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.resource.Resource fieldResource, Map<String,Object> formData) throws FormException
FieldHandler
handleField
in interface FieldHandler
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 invalidCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.