Resetpublic class Reset extends FormButton
Render a reset button. The reset tag is used together with the form tag to provide form resetting.
The reset can have two different types of rendering:
- input: renders as html <input type="reset"...>
- button: renders as html <button type="reset"...>
Please note that the button type has advantages by adding the possibility to seperate the submitted value from the
text shown on the button face, but has issues with Microsoft Internet Explorer at least up to 6.0
Examples
<s:reset value="Reset" />
Render an button reset:
<s:reset type="button" key="reset"/>
|
Fields Summary |
---|
public static final String | TEMPLATE | protected String | action | protected String | method | protected String | align | protected String | type |
Methods Summary |
---|
public void | evaluateParams()
if ((key == null) && (value == null)) {
value = "Reset";
}
if (((key != null)) && (value == null)) {
this.value = "%{getText('"+key +"')}";
}
super.evaluateParams();
| protected java.lang.String | getDefaultTemplate()
return Reset.TEMPLATE;
| public void | setLabel(java.lang.String label)
super.setLabel(label);
| protected boolean | supportsImageType()Indicate whether the concrete button supports the type "image".
return false;
|
|