|
HDIV API 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts2.components.Component
org.apache.struts2.components.UIBean
org.apache.struts2.components.FormButton
org.apache.struts2.components.Submit
org.hdiv.components.SubmitHDIV
public class SubmitHDIV
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:
<s:submit value="%{'Submit'}" />
Render an image submit:
<s:submit type="image" value="%{'Submit'}" label="Submit the form" src="submit.gif"/>
Render an button submit:
<s:submit type="button" value="%{'Submit'}" label="Submit the form"/>
THE FOLLOWING IS ONLY VALID WHEN AJAX IS CONFIGURED
Remote form replacing another div:
<div id='two' style="border: 1px solid yellow;">Initial content</div>
<s:form
id='theForm2'
cssStyle="border: 1px solid green;"
action='/AjaxRemoteForm.action'
method='post'
theme="ajax">
<input type='text' name='data' value='Struts User' />
<s:submit value="GO2" theme="ajax" resultDivId="two" />
</s:form >
| Field Summary | |
|---|---|
static java.lang.String |
TEMPLATE
|
| Fields inherited from class org.apache.struts2.components.Submit |
|---|
afterLoading, beforeLoading, errorText, executeScripts, formFilter, formId, handler, href, indicator, listenTopics, loadingText, notifyTopics, showErrorTransportText, showLoadingText, src, targets |
| Fields inherited from class org.apache.struts2.components.FormButton |
|---|
action, align, method, type |
| Fields inherited from class org.apache.struts2.components.UIBean |
|---|
accesskey, cssClass, cssStyle, defaultTemplateDir, defaultUITheme, disabled, key, label, labelPosition, name, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, request, required, requiredposition, response, tabindex, template, templateDir, templateEngineManager, templateSuffix, theme, title, tooltip, tooltipConfig, value |
| Fields inherited from class org.apache.struts2.components.Component |
|---|
actionMapper, COMPONENT_STACK, id, parameters, stack |
| Constructor Summary | |
|---|---|
SubmitHDIV(com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
|
| Method Summary | |
|---|---|
org.hdiv.dataComposer.IDataComposer |
getDataComposer()
|
protected java.lang.String |
getDefaultTemplate()
|
| Methods inherited from class org.apache.struts2.components.Submit |
|---|
end, evaluateExtraParams, evaluateParams, setAfterLoading, setBeforeLoading, setErrorText, setExecuteScripts, setFormFilter, setFormId, setHandler, setHref, setIndicator, setListenTopics, setLoadingText, setNotifyTopics, setShowErrorTransportText, setShowLoadingText, setSrc, setTargets, setTheme, supportsImageType |
| Methods inherited from class org.apache.struts2.components.FormButton |
|---|
populateComponentHtmlId, setAction, setAlign, setMethod, setType |
| Methods inherited from class org.apache.struts2.components.UIBean |
|---|
addFormParameter, buildTemplateName, enableAncestorFormCustomOnsubmit, escape, evaluateNameValue, getTemplate, getTemplateDir, getTheme, getTooltipConfig, getValueClassType, mergeTemplate, setAccesskey, setCssClass, setCssStyle, setDefaultTemplateDir, setDefaultUITheme, setDisabled, setKey, setLabel, setLabelposition, setName, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setRequired, setRequiredposition, setTabindex, setTemplate, setTemplateDir, setTemplateEngineManager, setTitle, setTooltip, setTooltipConfig, setValue |
| Methods inherited from class org.apache.struts2.components.Component |
|---|
addAllParameters, addParameter, altSyntax, copyParams, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findValue, findValue, findValue, getComponentStack, getId, getParameters, getStack, popComponentStack, setActionMapper, setId, start, toString, usesBody |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TEMPLATE
| Constructor Detail |
|---|
public SubmitHDIV(com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
| Method Detail |
|---|
protected java.lang.String getDefaultTemplate()
getDefaultTemplate in class org.apache.struts2.components.Submitpublic org.hdiv.dataComposer.IDataComposer getDataComposer()
|
HDIV 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||