|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.webwork.components.Component
com.opensymphony.webwork.components.UIBean
com.opensymphony.webwork.components.ClosingUIBean
com.opensymphony.webwork.components.Form
public class Form
Renders HTML an input form.
The remote form allows the form to be submitted without the page being refreshed. The results from the form can be inserted into any HTML element on the page. NOTE: The order / logic in determining the posting url of the generated HTML form is as follows:-<ww:form ... />
| Field Summary | |
|---|---|
protected String |
acceptcharset
|
protected String |
action
|
protected String |
enctype
|
protected String |
method
|
protected String |
namespace
|
protected String |
onsubmit
|
static String |
OPEN_TEMPLATE
|
protected String |
portletMode
|
protected String |
target
|
static String |
TEMPLATE
|
protected String |
validate
|
protected String |
windowState
|
| Fields inherited from class com.opensymphony.webwork.components.UIBean |
|---|
accesskey, cssClass, cssStyle, disabled, label, labelPosition, name, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, request, required, requiredposition, response, tabindex, template, templateDir, templateSuffix, theme, title, tooltip, tooltipConfig, value |
| Fields inherited from class com.opensymphony.webwork.components.Component |
|---|
COMPONENT_STACK, id, parameters, stack |
| Constructor Summary | |
|---|---|
Form(com.opensymphony.xwork.util.OgnlValueStack stack,
HttpServletRequest request,
HttpServletResponse response)
|
|
| Method Summary | |
|---|---|
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 void |
populateComponentHtmlId(Form form)
Form component determine the its HTML element id as follows:- if an 'id' attribute is specified. |
void |
setAcceptcharset(String acceptcharset)
The accepted charsets for this form. |
void |
setAction(String action)
Set action nane to submit to, without .action suffix |
void |
setEnctype(String enctype)
HTML form enctype attribute |
void |
setMethod(String method)
HTML form method attribute |
void |
setNamespace(String namespace)
namespace for action to submit to |
void |
setOnsubmit(String onsubmit)
HTML onsubmit attribute |
void |
setPortletMode(String portletMode)
The portlet mode to display after the form submit |
void |
setTarget(String target)
HTML form target attribute |
void |
setValidate(String validate)
Whether client side/remote validation should be performed. |
void |
setWindowState(String windowState)
The window state to display after the form submit |
| Methods inherited from class com.opensymphony.webwork.components.ClosingUIBean |
|---|
setOpenTemplate, start |
| Methods inherited from class com.opensymphony.webwork.components.UIBean |
|---|
addFormParameter, buildTemplateName, enableAncestorFormCustomOnsubmit, end, escape, evaluateParams, getTemplate, getTemplateDir, getTheme, getTooltipConfig, getValueClassType, mergeTemplate, setAccesskey, setCssClass, setCssStyle, setDisabled, setLabel, setLabelposition, setLabelPosition, setName, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setRequired, setRequiredposition, setTabindex, setTemplate, setTemplateDir, setTheme, setTitle, setTooltip, setTooltipConfig, setValue |
| Methods inherited from class com.opensymphony.webwork.components.Component |
|---|
addAllParameters, addParameter, altSyntax, copyParams, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findValue, findValue, findValue, getComponentStack, getId, getParameters, getStack, popComponentStack, setId, toString, usesBody |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String OPEN_TEMPLATE
public static final String TEMPLATE
protected String onsubmit
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
| Constructor Detail |
|---|
public Form(com.opensymphony.xwork.util.OgnlValueStack stack,
HttpServletRequest request,
HttpServletResponse response)
| Method Detail |
|---|
protected boolean evaluateNameValue()
evaluateNameValue in class UIBeanpublic String getDefaultOpenTemplate()
getDefaultOpenTemplate in class ClosingUIBeanprotected String getDefaultTemplate()
UIBean
getDefaultTemplate in class UIBeanprotected void evaluateExtraParams()
evaluateExtraParams in class UIBeanprotected void populateComponentHtmlId(Form form)
populateComponentHtmlId in class UIBeanpublic List getValidators(String name)
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 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||