org.apache.struts2.components
类 TextField
java.lang.Object
org.apache.struts2.components.Component
org.apache.struts2.components.UIBean
org.apache.struts2.components.TextField
- 直接已知子类:
- ComboBox, Password
public class TextField
- extends UIBean
Render an HTML input field of type text
Examples
In this example, a text control for the "user" property is rendered. The label is also retrieved from a ResourceBundle via the key attribute.
<s:textfield key="user" />
<s:textfield name="user" label="User Name" />
字段摘要 |
static String |
TEMPLATE
The name of the default template for the TextFieldTag |
构造方法摘要 |
TextField(com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
从类 org.apache.struts2.components.UIBean 继承的方法 |
addFormParameter, copyParams, end, evaluateParams, getId, getTemplate, getTemplateDir, getTheme, setAccesskey, 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, setTabindex, setTemplate, setTemplateDir, setTemplateEngineManager, setTheme, setTitle, setTooltip, setTooltipConfig, setTooltipCssClass, setTooltipDelay, setTooltipIconPath, setUIThemeExpansionToken, setValue |
从类 org.apache.struts2.components.Component 继承的方法 |
addAllParameters, addParameter, altSyntax, getComponentStack, getParameters, getStack, setActionMapper, setThrowExceptionsOnELFailure, setUrlHelper, start, usesBody |
TEMPLATE
public static final String TEMPLATE
- The name of the default template for the TextFieldTag
- 另请参见:
- 常量字段值
TextField
public TextField(com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
setMaxlength
public void setMaxlength(String maxlength)
setMaxLength
public void setMaxLength(String maxlength)
setReadonly
public void setReadonly(String readonly)
setSize
public void setSize(String size)
setType
public void setType(String type)