public class Form extends ClosingUIBean
<s:form ... />
Modifier and Type | Class and Description |
---|---|
static class |
Form.FieldVisitorValidatorWrapper
Wrap field validator, add visitor's field prefix to the field name.
|
Modifier and Type | Field and Description |
---|---|
protected String |
acceptcharset |
protected String |
action |
protected ActionValidatorManager |
actionValidatorManager |
protected Configuration |
configuration |
protected String |
enctype |
protected String |
focusElement |
protected boolean |
includeContext |
protected String |
method |
protected String |
namespace |
protected ObjectFactory |
objectFactory |
protected String |
onreset |
protected String |
onsubmit |
static String |
OPEN_TEMPLATE |
protected String |
portletMode |
protected String |
target |
static String |
TEMPLATE |
protected UrlRenderer |
urlRenderer |
protected String |
validate |
protected String |
windowState |
accesskey, cssClass, cssErrorClass, cssErrorStyle, cssStyle, defaultTemplateDir, defaultUITheme, disabled, dynamicAttributes, errorPosition, id, javascriptTooltip, key, label, labelPosition, labelSeparator, name, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, request, requiredLabel, requiredPosition, response, tabindex, template, templateDir, templateEngineManager, templateSuffix, theme, title, tooltip, tooltipConfig, tooltipCssClass, tooltipDelay, tooltipIconPath, uiThemeExpansionToken, value
actionMapper, COMPONENT_STACK, devMode, parameters, stack, standardAttributesMap, throwExceptionOnELFailure
Constructor and Description |
---|
Form(ValueStack stack,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
protected void |
evaluateClientSideJsEnablement(String actionName,
String namespace,
String actionMethod)
Evaluate client side JavaScript Enablement.
|
protected void |
evaluateExtraParams() |
protected boolean |
evaluateNameValue() |
String |
getDefaultOpenTemplate() |
protected String |
getDefaultTemplate()
A contract that requires each concrete UI Tag to specify which template should be used as a default.
|
protected int |
getSequence()
Get a incrementing sequence unique to this
Form component. |
List |
getValidators(String name) |
protected Class |
getVisitorReturnType(Class actionClass,
String visitorFieldName)
Return type of visited object.
|
protected void |
populateComponentHtmlId(Form form)
Form component determine the its HTML element id as follows:-
if an 'id' attribute is specified.
if an 'action' attribute is specified, it will be used as the id.
|
void |
setAcceptcharset(String acceptcharset) |
void |
setAction(String action) |
void |
setActionValidatorManager(ActionValidatorManager mgr) |
void |
setConfiguration(Configuration configuration) |
void |
setEnctype(String enctype) |
void |
setFocusElement(String focusElement) |
void |
setIncludeContext(boolean includeContext) |
void |
setMethod(String method) |
void |
setNamespace(String namespace) |
void |
setObjectFactory(ObjectFactory objectFactory) |
void |
setOnreset(String onreset) |
void |
setOnsubmit(String onsubmit) |
void |
setPortletMode(String portletMode) |
void |
setTarget(String target) |
void |
setUrlRenderer(UrlRenderer urlRenderer) |
void |
setValidate(String validate) |
void |
setWindowState(String windowState) |
setOpenTemplate, start
addFormParameter, buildTemplateName, copyParams, enableAncestorFormCustomOnsubmit, end, ensureAttributeSafelyNotEscaped, escape, evaluateParams, getId, getTemplate, getTemplateDir, getTheme, getTooltipConfig, getValueClassType, mergeTemplate, setAccesskey, setClass, setCssClass, setCssErrorClass, setCssErrorStyle, setCssStyle, setDefaultTemplateDir, setDefaultUITheme, setDisabled, setDynamicAttributes, setErrorPosition, setId, setJavascriptTooltip, setKey, setLabel, setLabelposition, setLabelSeparator, setName, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setRequiredLabel, setRequiredPosition, setStyle, setTabindex, setTemplate, setTemplateDir, setTemplateEngineManager, setTheme, setTitle, setTooltip, setTooltipConfig, setTooltipCssClass, setTooltipDelay, setTooltipIconPath, setUIThemeExpansionToken, setValue
addAllParameters, addParameter, altSyntax, completeExpressionIfAltSyntax, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findStringIfAltSyntax, findValue, findValue, findValue, getComponentStack, getParameters, getStack, getStandardAttributes, isValidTagAttribute, popComponentStack, setActionMapper, setDevMode, setThrowExceptionsOnELFailure, setUrlHelper, stripExpressionIfAltSyntax, toString, usesBody
public static final String OPEN_TEMPLATE
public static final String TEMPLATE
protected String onsubmit
protected String onreset
protected String action
protected String target
protected String enctype
protected String method
protected String namespace
protected String validate
protected String portletMode
protected String windowState
protected String acceptcharset
protected boolean includeContext
protected String focusElement
protected Configuration configuration
protected ObjectFactory objectFactory
protected UrlRenderer urlRenderer
protected ActionValidatorManager actionValidatorManager
public Form(ValueStack stack, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected boolean evaluateNameValue()
evaluateNameValue
in class UIBean
public String getDefaultOpenTemplate()
getDefaultOpenTemplate
in class ClosingUIBean
protected String getDefaultTemplate()
UIBean
getDefaultTemplate
in class UIBean
public void setConfiguration(Configuration configuration)
public void setObjectFactory(ObjectFactory objectFactory)
public void setUrlRenderer(UrlRenderer urlRenderer)
public void setActionValidatorManager(ActionValidatorManager mgr)
protected void evaluateExtraParams()
evaluateExtraParams
in class UIBean
protected void populateComponentHtmlId(Form form)
populateComponentHtmlId
in class UIBean
form
- enclosing form tagprotected void evaluateClientSideJsEnablement(String actionName, String namespace, String actionMethod)
actionName
- the actioName to check fornamespace
- the namespace to check foractionMethod
- the method to ckeck forprotected Class getVisitorReturnType(Class actionClass, String visitorFieldName)
actionClass
- visitorFieldName
- protected int getSequence()
Form
component.
It is used by Form
component's child that might need a
sequence to make them unique.public void setOnsubmit(String onsubmit)
public void setOnreset(String onreset)
public void setAction(String action)
public void setTarget(String target)
public void setEnctype(String enctype)
public void setMethod(String method)
public void setNamespace(String namespace)
public void setValidate(String validate)
public void setPortletMode(String portletMode)
public void setWindowState(String windowState)
public void setAcceptcharset(String acceptcharset)
public void setFocusElement(String focusElement)
public void setIncludeContext(boolean includeContext)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.