org.apache.struts2.components
类 Submit
java.lang.Object
org.apache.struts2.components.Component
org.apache.struts2.components.UIBean
org.apache.struts2.components.ClosingUIBean
org.apache.struts2.components.FormButton
org.apache.struts2.components.Submit
public class Submit
- extends FormButton
Render a submit button. The submit tag is used together with the form tag to provide asynchronous form submissions.
The submit can have three different types of rendering:
- input: renders as html <input type="submit"...>
- image: renders as html <input type="image"...>
- button: renders as html <button type="submit"...>
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
构造方法摘要 |
Submit(com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
从类 org.apache.struts2.components.UIBean 继承的方法 |
addFormParameter, copyParams, 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 |
OPEN_TEMPLATE
public static final String OPEN_TEMPLATE
- 另请参见:
- 常量字段值
TEMPLATE
public static final String TEMPLATE
- 另请参见:
- 常量字段值
Submit
public Submit(com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
getDefaultOpenTemplate
public String getDefaultOpenTemplate()
- 指定者:
- 类
ClosingUIBean
中的 getDefaultOpenTemplate
evaluateParams
public void evaluateParams()
- 覆盖:
- 类
UIBean
中的 evaluateParams
evaluateExtraParams
public void evaluateExtraParams()
- 覆盖:
- 类
FormButton
中的 evaluateExtraParams
setSrc
public void setSrc(String src)
usesBody
public boolean usesBody()
- 从类
Component
复制的描述
- Overwrite to set if body should be used.
- 覆盖:
- 类
Component
中的 usesBody
- 返回:
- always false for this component.
end
public boolean end(Writer writer,
String body)
- Overrides to be able to render body in a template rather than always before the template
- 覆盖:
- 类
UIBean
中的 end
- 参数:
writer
- the output writer.body
- the rendered body.
- 返回:
- true if the body should be evaluated again