| java.lang.Object com.opensymphony.webwork.components.Component com.opensymphony.webwork.components.UIBean com.opensymphony.webwork.components.ClosingUIBean com.opensymphony.webwork.components.Form
Form | public class Form extends ClosingUIBean (Code) | |
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:-
-
If the action attribute is not specified, then the current request will be used to
determine the posting url
-
If the action is given, WebWork will try to obtain an ActionConfig. This will be
successfull if the action attribute is a valid action alias defined xwork.xml.
-
If the action is given and is not an action alias defined in xwork.xml WebWork
will used the action attribute as if it is the posting url, separting the namespace
from it and using UrlHelper to generate the final url.
Examples
<ww:form ... />
author: Patrick Lightbody author: Ian Roughley author: Rene Gielen author: Rainer Hermanns version: $Date: 2007-01-14 10:33:47 +0100 (Sun, 14 Jan 2007) $ $Id: Form.java 2805 2007-01-14 09:33:47Z tmjee $ since: 2.2 |
evaluateExtraParams | protected void evaluateExtraParams()(Code) | | |
evaluateNameValue | protected boolean evaluateNameValue()(Code) | | |
getDefaultOpenTemplate | public String getDefaultOpenTemplate()(Code) | | |
getDefaultTemplate | protected String getDefaultTemplate()(Code) | | |
getSequence | protected int getSequence()(Code) | | Get a incrementing sequence unique to this Form component.
It is used by Form component's child that might need a
sequence to make them unique.
int |
populateComponentHtmlId | protected void populateComponentHtmlId(Form form)(Code) | | 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.
|
setAcceptcharset | public void setAcceptcharset(String acceptcharset)(Code) | | The accepted charsets for this form. The values may be comma or blank delimited.
|
setAction | public void setAction(String action)(Code) | | Set action nane to submit to, without .action suffix
|
setEnctype | public void setEnctype(String enctype)(Code) | | HTML form enctype attribute
|
setMethod | public void setMethod(String method)(Code) | | HTML form method attribute
|
setNamespace | public void setNamespace(String namespace)(Code) | | namespace for action to submit to
|
setOnsubmit | public void setOnsubmit(String onsubmit)(Code) | | HTML onsubmit attribute
|
setPortletMode | public void setPortletMode(String portletMode)(Code) | | The portlet mode to display after the form submit
|
setTarget | public void setTarget(String target)(Code) | | HTML form target attribute
|
setValidate | public void setValidate(String validate)(Code) | | Whether client side/remote validation should be performed. Only useful with theme xhtml/ajax
|
setWindowState | public void setWindowState(String windowState)(Code) | | The window state to display after the form submit
|
Methods inherited from com.opensymphony.webwork.components.Component | public void addAllParameters(Map params)(Code)(Java Doc) public void addParameter(String key, Object value)(Code)(Java Doc) public boolean altSyntax()(Code)(Java Doc) public void copyParams(Map params)(Code)(Java Doc) protected String determineActionURL(String action, String namespace, String method, HttpServletRequest req, HttpServletResponse res, Map parameters, String scheme, boolean includeContext, boolean encodeResult, boolean escapeXml)(Code)(Java Doc) protected String determineNamespace(String namespace, OgnlValueStack stack, HttpServletRequest req)(Code)(Java Doc) public boolean end(Writer writer, String body)(Code)(Java Doc) protected boolean end(Writer writer, String body, boolean popComponentStack)(Code)(Java Doc) protected WebWorkException fieldError(String field, String errorMsg, Exception e)(Code)(Java Doc) protected Component findAncestor(Class clazz)(Code)(Java Doc) protected String findString(String expr)(Code)(Java Doc) protected String findString(String expr, String field, String errorMsg)(Code)(Java Doc) protected Object findValue(String expr)(Code)(Java Doc) protected Object findValue(String expr, String field, String errorMsg)(Code)(Java Doc) protected Object findValue(String expr, Class toType)(Code)(Java Doc) public Stack getComponentStack()(Code)(Java Doc) public String getId()(Code)(Java Doc) public Map getParameters()(Code)(Java Doc) public OgnlValueStack getStack()(Code)(Java Doc) protected void popComponentStack()(Code)(Java Doc) public void setId(String id)(Code)(Java Doc) public boolean start(Writer writer)(Code)(Java Doc) protected String toString(Throwable t)(Code)(Java Doc) public boolean usesBody()(Code)(Java Doc)
|
|
|