TextFieldpublic 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" />
|
Fields Summary |
---|
public static final String | TEMPLATEThe name of the default template for the TextFieldTag | protected String | maxlength | protected String | readonly | protected String | size |
Methods Summary |
---|
protected void | evaluateExtraParams()
super.evaluateExtraParams();
if (size != null) {
addParameter("size", findString(size));
}
if (maxlength != null) {
addParameter("maxlength", findString(maxlength));
}
if (readonly != null) {
addParameter("readonly", findValue(readonly, Boolean.class));
}
| protected java.lang.String | getDefaultTemplate()
return TEMPLATE;
| public void | setMaxLength(java.lang.String maxlength)
this.maxlength = maxlength;
| public void | setMaxlength(java.lang.String maxlength)
this.maxlength = maxlength;
| public void | setReadonly(java.lang.String readonly)
this.readonly = readonly;
| public void | setSize(java.lang.String size)
this.size = size;
|
|