org.hippoecm.hst.component.support.forms
Class BaseFormHstComponent

java.lang.Object
  extended by org.hippoecm.hst.core.component.GenericHstComponent
      extended by org.hippoecm.hst.component.support.bean.BaseHstComponent
          extended by org.hippoecm.hst.component.support.forms.BaseFormHstComponent
All Implemented Interfaces:
HstComponent

Deprecated. use static methods in FormUtils instead

@Deprecated
public class BaseFormHstComponent
extends BaseHstComponent


Field Summary
static String DEFAULT_FORMDATA_CONTAINER
          Deprecated.  
static String DEFAULT_FORMDATA_TYPE
          Deprecated.  
static String DEFAULT_STORED_FORMS_LOCATION
          Deprecated.  
static String DEFAULT_UUID_NAME
          Deprecated.  
static String DEFAULT_WRITABLE_PASSWORD_PROPERTY
          Deprecated.  
static String DEFAULT_WRITABLE_USERNAME_PROPERTY
          Deprecated.  
static String HST_CREATIONTIME
          Deprecated.  
static String HST_FORM_DATA_NODE
          Deprecated.  
static String HST_FORM_FIELD_DATA
          Deprecated.  
static String HST_FORM_FIELD_MESSAGES
          Deprecated.  
static String HST_FORM_FIELD_NAME
          Deprecated.  
static String HST_PREDECESSOR
          Deprecated.  
static String HST_SEALED
          Deprecated.  
 
Fields inherited from class org.hippoecm.hst.component.support.bean.BaseHstComponent
BEANS_ANNOTATED_CLASSES_CONF_PARAM, beansInitialized, DEFAULT_BEANS_ANNOTATED_CLASSES_CONF, hstQueryManagerFactory, OBJECT_CONVERTER_CONTEXT_ATTRIBUTE, objectConverter
 
Fields inherited from class org.hippoecm.hst.core.component.GenericHstComponent
RESOURCE_PATH_BY_RESOURCE_ID
 
Constructor Summary
BaseFormHstComponent()
          Deprecated.  
 
Method Summary
 void doAction(HstRequest request, HstResponse response)
          Deprecated. Allows the component to process actions
protected  String getFormDataNodeName()
          Deprecated.  
protected  String getFormDataNodeType()
          Deprecated.  
protected  String getWritablePassword()
          Deprecated.  
protected  String getWritableUserName()
          Deprecated.  
protected  void persistFormMap(HstRequest request, HstResponse response, FormMap formMap, StoreFormResult storeFormResult)
          Deprecated. use {@link FormUtils#persistFormMap(HstRequest, HstResponse, FormMap, StoreFormResult) instead
protected  void populate(HstRequest request, FormMap formMap)
          Deprecated. use FormUtils.populate(HstRequest, FormMap) instead
 
Methods inherited from class org.hippoecm.hst.component.support.bean.BaseHstComponent
getAssetBaseBean, getBeanForResolvedSiteMapItem, getContentBean, getContentBean, getDefaultClientComponentManager, getFallBackJcrNodeTypes, getGalleryBaseBean, getHstSite, getLocalAnnotatedClasses, getLocalParameter, getLocalParameters, getMount, getObjectBeanManager, getObjectConverter, getParameter, getParameters, getParametersInfo, getPersistableSession, getPersistableSession, getPublicRequestParameter, getPublicRequestParameters, getQueryManager, getQueryManager, getQueryManager, getQueryManager, getResolvedMount, getSiteContentBaseBean, getSiteContentBasePath, getWorkflowPersistenceManager, getWorkflowPersistenceManager, init, isPreview, sendRedirect, sendRedirect, sendRedirect
 
Methods inherited from class org.hippoecm.hst.core.component.GenericHstComponent
destroy, doBeforeRender, doBeforeServeResource, getComponentConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_UUID_NAME

public static final String DEFAULT_UUID_NAME
Deprecated. 
See Also:
Constant Field Values

DEFAULT_STORED_FORMS_LOCATION

public static final String DEFAULT_STORED_FORMS_LOCATION
Deprecated. 
See Also:
Constant Field Values

DEFAULT_FORMDATA_CONTAINER

public static final String DEFAULT_FORMDATA_CONTAINER
Deprecated. 
See Also:
Constant Field Values

DEFAULT_FORMDATA_TYPE

public static final String DEFAULT_FORMDATA_TYPE
Deprecated. 
See Also:
Constant Field Values

HST_CREATIONTIME

public static final String HST_CREATIONTIME
Deprecated. 
See Also:
Constant Field Values

HST_PREDECESSOR

public static final String HST_PREDECESSOR
Deprecated. 
See Also:
Constant Field Values

HST_FORM_DATA_NODE

public static final String HST_FORM_DATA_NODE
Deprecated. 
See Also:
Constant Field Values

HST_FORM_FIELD_DATA

public static final String HST_FORM_FIELD_DATA
Deprecated. 
See Also:
Constant Field Values

HST_FORM_FIELD_MESSAGES

public static final String HST_FORM_FIELD_MESSAGES
Deprecated. 
See Also:
Constant Field Values

HST_FORM_FIELD_NAME

public static final String HST_FORM_FIELD_NAME
Deprecated. 
See Also:
Constant Field Values

DEFAULT_WRITABLE_USERNAME_PROPERTY

public static final String DEFAULT_WRITABLE_USERNAME_PROPERTY
Deprecated. 
See Also:
Constant Field Values

DEFAULT_WRITABLE_PASSWORD_PROPERTY

public static final String DEFAULT_WRITABLE_PASSWORD_PROPERTY
Deprecated. 
See Also:
Constant Field Values

HST_SEALED

public static final String HST_SEALED
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

BaseFormHstComponent

public BaseFormHstComponent()
Deprecated. 
Method Detail

doAction

public void doAction(HstRequest request,
                     HstResponse response)
              throws HstComponentException
Deprecated. 
Description copied from interface: HstComponent
Allows the component to process actions

Specified by:
doAction in interface HstComponent
Overrides:
doAction in class GenericHstComponent
Throws:
HstComponentException

populate

@Deprecated
protected void populate(HstRequest request,
                                   FormMap formMap)
Deprecated. use FormUtils.populate(HstRequest, FormMap) instead

This method tries to repopulate an earlier posted form that was stored in the repository. Only when there is a request parameter containing the correct uuid, you can re-populate it.

Parameters:
request - the current hstRequest
formMap - the formMap that will be populated

persistFormMap

@Deprecated
protected void persistFormMap(HstRequest request,
                                         HstResponse response,
                                         FormMap formMap,
                                         StoreFormResult storeFormResult)
                       throws HstComponentException
Deprecated. use {@link FormUtils#persistFormMap(HstRequest, HstResponse, FormMap, StoreFormResult) instead

Facility to temporarily store submitted form data which needs to be accessed in the rendering phase again. This method add the uuid of the newly created jcr node on the response as a render parameter

Parameters:
request - the request
response - the response
formMap - the form names + values to temporarily store
storeFormResult - an object to store some result of the data persisting, for example the uuid of the created node
Throws:
HstComponentException - when the storing of the formdata fails

getWritablePassword

@Deprecated
protected String getWritablePassword()
Deprecated. 

If you have a different property for you writable user instead of the default DEFAULT_WRITABLE_PASSWORD_PROPERTY, then override this method

Returns:
the property name of the password of a writable user

getWritableUserName

@Deprecated
protected String getWritableUserName()
Deprecated. 

If you have a different property for you writable user instead of the default DEFAULT_WRITABLE_USERNAME_PROPERTY, then override this method

Returns:
the property name of the username of a writable user

getFormDataNodeName

@Deprecated
protected String getFormDataNodeName()
Deprecated. 

Override this method if you need a different location for storing form data

Returns:
default repository location for stored nodes

getFormDataNodeType

@Deprecated
protected String getFormDataNodeType()
Deprecated. 

Override this method if you need a different node type

Returns:
default node type to store form data


Copyright © 2008-2012 Hippo. All Rights Reserved.