lumis.doui.control.form
Class FormControl

Package class diagram package FormControl
java.lang.Object
  extended by lumis.doui.control.Control
      extended by lumis.doui.control.form.FormControl
All Implemented Interfaces:
VariableResolver, IControl, IFormControl

public class FormControl
extends Control
implements IFormControl

Defines a form control. Use this control when you want to render a form that posts user input to the server.

Example use:

<control:lum_form> <!-- controls within the form --> </control:lum_form> xml data available for xsl rendering: <control id="FF80808110EC81EF0110EEBF13D600BB" type="lum_form"> <!-- controls within the form --> <data> <name>Form_4028802410E199490110E1F2C84300FA</name> <method>POST</method> <action>main.jsp?lumPageId=1D6530765D5644709741AEAA3622D3BC&amp;lumII=4028802410E199490110E1F2C84300FA</action> </data> </control>

Since:
4.0.6

Field Summary
static String CONTENT_TYPE_MULTI_PART
          Represents multipart/form-data content type.
 
Fields inherited from class lumis.doui.control.Control
childControls, controlContainer, controlDefinitionNode, controlResource, douiContext, hasValidatorSubControls, isValid, locale, ON_EVENT_CLOSE_WINDOW, ON_EVENT_LINK, ON_EVENT_POPUP_LINK_OR_RUNTIME_INTERFACE, ON_EVENT_POPUP_RUNTIME_INTERFACE, ON_EVENT_PROCESS_ACTION, ON_EVENT_RENDER_ACTION, ON_EVENT_REPLACE_INTERFACE, ON_EVENT_SCRIPT, onEventScripts, PARAMETER_TYPE_FIRST_SELECTED, PARAMETER_TYPE_GET_VALUE, parentControl, resources, type, VALIDATION_SELECTED_MANY, VALIDATION_SELECTED_ONE
 
Constructor Summary
FormControl()
           
 
Method Summary
 String getEncodingType()
           
 boolean hasRequiredFields()
           
 void init(Node controlDefinitionNode, ControlContainer controlContainer, IControl parentControl)
           
 void setEncodingType(String encodingType)
           
 void setHasRequiredFields(boolean requiredFields)
           
 void setRenderData()
           
protected  void setStoredContextValues(Node dataNode)
           
 
Methods inherited from class lumis.doui.control.Control
appendSubControl, appendSubControls, applyOnEventScripts, buildSubControls, convertToStandardValue, createContainer, disconnect, fixedIdentifierRequired, generateControlId, getAdditionalParameters, getAdditionalParameters, getAncestor, getChildControls, getClientEventHandlerScript, getControlResource, getId, getLocale, getNamespace, getParentControl, getPrepareForReadScript, getRenderData, getResources, getRuntimeDefaultSource, getScriptActionValidation, getScriptGetValues, getScriptGetValuesFunctionImplementation, getScriptGetValuesFunctionName, getScriptGetValuesRegistration, getSourceContext, getStringsToLocalize, getType, getValidationScript, isValid, localize, localizeStrings, processCustomTags, registerOnEventScript, removeChild, removeChildren, resolveVariable, setRuntimeAttributes, setValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_TYPE_MULTI_PART

public static final String CONTENT_TYPE_MULTI_PART
Represents multipart/form-data content type.

Since:
6.1.0
See Also:
Constant Field Values
Constructor Detail

FormControl

public FormControl()
Method Detail

init

public void init(Node controlDefinitionNode,
                 ControlContainer controlContainer,
                 IControl parentControl)
          throws PortalException
Specified by:
init in interface IControl
Overrides:
init in class Control
Throws:
PortalException

setRenderData

public void setRenderData()
                   throws PortalException
Specified by:
setRenderData in interface IControl
Overrides:
setRenderData in class Control
Throws:
PortalException

setStoredContextValues

protected void setStoredContextValues(Node dataNode)
                               throws PortalException
Throws:
PortalException

getEncodingType

public String getEncodingType()
Specified by:
getEncodingType in interface IFormControl
Returns:
Returns the encodingType.

setEncodingType

public void setEncodingType(String encodingType)
Specified by:
setEncodingType in interface IFormControl
Parameters:
encodingType - The encodingType to set.

hasRequiredFields

public boolean hasRequiredFields()
                          throws PortalException
Throws:
PortalException

setHasRequiredFields

public void setHasRequiredFields(boolean requiredFields)
                          throws PortalException
Throws:
PortalException


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.