info.magnolia.module.shop.paragraphs
Class ShopStartStepFormEngine

java.lang.Object
  extended by info.magnolia.module.form.engine.FormEngine
      extended by info.magnolia.module.form.templates.components.AbstractFormEngine
          extended by info.magnolia.module.form.templates.components.multistep.StartStepFormEngine
              extended by info.magnolia.module.shop.paragraphs.ShopStartStepFormEngine

public class ShopStartStepFormEngine
extends info.magnolia.module.form.templates.components.multistep.StartStepFormEngine

This form engine also looks in the shopping cart for a form token, before it creates a new one. That way, shoppers can continue shopping without loosing already entered data in the checkout form.

Author:
will

Field Summary
 
Fields inherited from class info.magnolia.module.form.engine.FormEngine
context, redirectWithParams
 
Constructor Summary
ShopStartStepFormEngine(javax.jcr.Node configurationNode, info.magnolia.module.form.templates.components.FormParagraph configurationParagraph, info.magnolia.rendering.context.RenderingContext context)
           
 
Method Summary
protected  String getFormStateToken()
          Finds the token from a requests parameter, shopping cart, or engine since this is the first step engine creates a new form state if the form is being submitted.
 
Methods inherited from class info.magnolia.module.form.templates.components.multistep.StartStepFormEngine
getNextPage
 
Methods inherited from class info.magnolia.module.form.templates.components.AbstractFormEngine
executeProcessors, getConfigurationNode, getConfigurationParagraph, getFormDataBinder, getFormView, getProcessorFailedView, getSuccessView, handleNoSuchFormState
 
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
 

Constructor Detail

ShopStartStepFormEngine

public ShopStartStepFormEngine(javax.jcr.Node configurationNode,
                               info.magnolia.module.form.templates.components.FormParagraph configurationParagraph,
                               info.magnolia.rendering.context.RenderingContext context)
Method Detail

getFormStateToken

protected String getFormStateToken()
                            throws info.magnolia.module.form.engine.FormStateTokenMissingException
Finds the token from a requests parameter, shopping cart, or engine since this is the first step engine creates a new form state if the form is being submitted.

Overrides:
getFormStateToken in class info.magnolia.module.form.templates.components.multistep.StartStepFormEngine
Throws:
info.magnolia.module.form.engine.FormStateTokenMissingException


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.