info.magnolia.module.form.templates.components
Class DefaultFormDataBinder
java.lang.Object
info.magnolia.module.form.templates.components.DefaultFormDataBinder
- All Implemented Interfaces:
- FormDataBinder
public class DefaultFormDataBinder
- extends Object
- implements FormDataBinder
Default FormDataBinder
that performs binding and validation for the
built-in fields.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultFormDataBinder
public DefaultFormDataBinder()
setI18nBasename
public void setI18nBasename(String i18nBasename)
getDefaultPath
public static String getDefaultPath()
bindAndValidate
public FormStepState bindAndValidate(javax.jcr.Node component)
throws javax.jcr.RepositoryException
- Specified by:
bindAndValidate
in interface FormDataBinder
- Throws:
javax.jcr.RepositoryException
bindAndValidateFields
protected void bindAndValidateFields(Iterator<javax.jcr.Node> iterator,
FormStepState step)
throws javax.jcr.RepositoryException
- Besides validating the fields for this step, it will also check for the existence of a
escapeHtml
property in a field configuration.
If such property value is false, HTML won't be escaped. Default value is true.
- Throws:
javax.jcr.RepositoryException
isMandatory
protected boolean isMandatory(javax.jcr.Node node)
getErrorMessage
protected String getErrorMessage(String message,
javax.jcr.Node node)
getFieldConfiguration
protected javax.jcr.Node getFieldConfiguration(javax.jcr.Node node)
- Returns:
- The field configuration for the current node or null if such config doesn't exist or couldn't be retrieved.
Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.