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
 
从类 org.apache.struts2.components.Component 继承的字段
COMPONENT_STACK
 
构造方法摘要
TextField(com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
方法摘要
 void setMaxlength(String maxlength)
           
 void setMaxLength(String maxlength)
           
 void setReadonly(String readonly)
           
 void setSize(String size)
           
 void setType(String type)
           
 
从类 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
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

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)