| java.lang.Object com.opensymphony.webwork.components.Component com.opensymphony.webwork.components.UIBean com.opensymphony.webwork.components.TextField
All known Subclasses: com.opensymphony.webwork.components.Password, com.opensymphony.webwork.components.DatePicker, com.opensymphony.webwork.components.ComboBox,
TextField | public class TextField extends UIBean (Code) | |
Render an HTML input field of type text
Examples
In this example, a text control is rendered. The label is retrieved from a ResourceBundle by calling
ActionSupport's getText() method.
<ww:textfield label="%{text('user_name')}" name="user" />
author: Patrick Lightbody author: Rene Gielen version: $Revision: 2468 $ since: 2.2 |
TEMPLATE | final public static String TEMPLATE(Code) | | The name of the default template for the TextFieldTag
|
evaluateExtraParams | protected void evaluateExtraParams()(Code) | | |
getDefaultTemplate | protected String getDefaultTemplate()(Code) | | |
setMaxLength | public void setMaxLength(String maxlength)(Code) | | Deprecated. Use maxlength instead.
|
setMaxlength | public void setMaxlength(String maxlength)(Code) | | HTML maxlength attribute
|
setReadonly | public void setReadonly(String readonly)(Code) | | Whether the input is readonly
|
setSize | public void setSize(String size)(Code) | | HTML size attribute
|
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)
|
|
|