info.magnolia.module.form.templates.components.multistep
Class StartStepFormEngine
java.lang.Object
info.magnolia.module.form.engine.FormEngine
info.magnolia.module.form.templates.components.AbstractFormEngine
info.magnolia.module.form.templates.components.multistep.StartStepFormEngine
public class StartStepFormEngine
- extends AbstractFormEngine
FormEngine implementation for the first step of a multi step form, or a single step form.
Constructor Summary |
StartStepFormEngine(javax.jcr.Node configurationNode,
FormParagraph configurationParagraph,
info.magnolia.rendering.context.RenderingContext context)
|
Method Summary |
protected String |
getFormStateToken()
Finds the token from a requests parameter, or since this is the first step creates a new form state if the form
is being submitted. |
protected String |
getNextPage()
Returns the UUID of the first child page with a paragraph of type FormStepParagraph . |
Methods inherited from class info.magnolia.module.form.engine.FormEngine |
createAndSetFormState, destroyFormState, getFormState, getFormState, getPreviousPage, getValidationFailedView, getValidationSuccessfulView, handleNoSuchFormStateOnSubmit, handleRequest, handleTokenMissing, isBackButton, isFormSubmission, isRedirectWithParams, setFormState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StartStepFormEngine
public StartStepFormEngine(javax.jcr.Node configurationNode,
FormParagraph configurationParagraph,
info.magnolia.rendering.context.RenderingContext context)
getFormStateToken
protected String getFormStateToken()
throws FormStateTokenMissingException
- Finds the token from a requests parameter, or since this is the first step creates a new form state if the form
is being submitted.
- Overrides:
getFormStateToken
in class FormEngine
- Throws:
FormStateTokenMissingException
getNextPage
protected String getNextPage()
throws javax.jcr.RepositoryException
- Returns the UUID of the first child page with a paragraph of type
FormStepParagraph
.
- Overrides:
getNextPage
in class FormEngine
- Throws:
javax.jcr.RepositoryException
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.