ButtonBeanpublic class Anchor extends AbstractRemoteBean implements ButtonBean
A tag that creates an HTML <a/> element, that when clicked makes an asynchronous request(XMLHttpRequest). The url attribute must be build using the <s:url/> tag.
Examples
<div id="div1">Div 1</div>
<s:url id="ajaxTest" value="/AjaxTest.action"/>
<sj:a id="link1" href="%{ajaxTest}" target="div1"> Update Content </sj:a>
<s:form id="form" action="AjaxTest"> <input type="textbox" name="data"> </s:form> <sj:a formId="form" targets="div1">Submit form</sj:a>
| Modifier and Type | Field | Description |
|---|---|---|
protected String |
button |
|
protected String |
buttonIcon |
|
protected String |
buttonIconSecondary |
|
protected String |
buttonText |
|
protected String |
clearForm |
|
static String |
COMPONENT_NAME |
|
protected String |
iframe |
|
static String |
JQUERYACTION |
|
protected String |
onClickTopics |
|
protected String |
openDialog |
|
protected String |
openDialogTitle |
|
static Random |
RANDOM |
|
protected String |
replaceTarget |
|
protected String |
resetForm |
|
static String |
TEMPLATE |
|
static String |
TEMPLATE_CLOSE |
|
protected String |
validate |
|
protected String |
validateFunction |
dataType, effect, effectDuration, effectMode, effectOptions, errorElementId, errorText, formIds, href, indicator, listenTopics, loadingText, onEffectCompleteTopics, requestType, targets, timeoutonAfterValidationTopics, onAlwaysTopics, onBeforeTopics, onBlurTopics, onChangeTopics, onCompleteTopics, onDisableTopics, onEnableTopics, onErrorTopics, onFocusTopics, onSuccessTopics, PARAM_JQUERY_ACTIONactionMapper, COMPONENT_STACK, devMode, parameters, stack, standardAttributesMap, throwExceptionOnELFailureaccesskey, cssClass, cssErrorClass, cssErrorStyle, cssStyle, defaultTemplateDir, defaultUITheme, disabled, dynamicAttributes, errorPosition, id, javascriptTooltip, key, label, labelPosition, labelSeparator, name, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, request, requiredLabel, requiredPosition, response, tabindex, template, templateDir, templateEngineManager, templateSuffix, theme, title, tooltip, tooltipConfig, tooltipCssClass, tooltipDelay, tooltipIconPath, uiThemeExpansionToken, value| Constructor | Description |
|---|---|
Anchor(com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
evaluateExtraParams() |
|
String |
getComponentName() |
|
String |
getDefaultOpenTemplate() |
|
protected String |
getDefaultTemplate() |
|
String |
getTheme() |
|
void |
setButton(String button) |
|
void |
setButtonIcon(String buttonIcon) |
|
void |
setButtonIconSecondary(String buttonIconSecondary) |
|
void |
setButtonText(String buttonText) |
|
void |
setClearForm(String clearForm) |
|
void |
setIframe(String iframe) |
|
void |
setOnClickTopics(String onClickTopics) |
|
void |
setOpenDialog(String openDialog) |
|
void |
setOpenDialogTitle(String openDialogTitle) |
|
void |
setReplaceTarget(String replaceTarget) |
|
void |
setResetForm(String resetForm) |
|
void |
setTheme(String theme) |
|
void |
setValidate(String validate) |
|
void |
setValidateFunction(String validateFunction) |
setDataType, setEffect, setEffectDuration, setEffectMode, setEffectOptions, setErrorElementId, setErrorText, setFormIds, setHref, setIndicator, setListenTopics, setLoadingText, setOnEffectCompleteTopics, setRequestType, setTargets, setTimeoutaddGeneratedIdParam, addParameterIfPresent, addParameterIfPresent, setOnAfterValidationTopics, setOnAlwaysTopics, setOnBeforeTopics, setOnBlurTopics, setOnChangeTopics, setOnCompleteTopics, setOnDisableTopics, setOnEnableTopics, setOnErrorTopics, setOnFocusTopics, setOnSuccessTopicsaddAllParameters, addParameter, altSyntax, completeExpressionIfAltSyntax, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findStringIfAltSyntax, findValue, findValue, findValue, getComponentStack, getParameters, getStack, getStandardAttributes, isValidTagAttribute, popComponentStack, setActionMapper, setDevMode, setThrowExceptionsOnELFailure, setUrlHelper, stripExpressionIfAltSyntax, toString, usesBodyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddFormParameter, buildTemplateName, copyParams, enableAncestorFormCustomOnsubmit, end, ensureAttributeSafelyNotEscaped, escape, evaluateNameValue, evaluateParams, getId, getTemplate, getTemplateDir, getTooltipConfig, getValueClassType, mergeTemplate, populateComponentHtmlId, setAccesskey, setClass, 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, setStyle, setTabindex, setTemplate, setTemplateDir, setTemplateEngineManager, setTitle, setTooltip, setTooltipConfig, setTooltipCssClass, setTooltipDelay, setTooltipIconPath, setUIThemeExpansionToken, setValuepublic static final String TEMPLATE
public static final String TEMPLATE_CLOSE
public static final String COMPONENT_NAME
public static final transient Random RANDOM
public static final String JQUERYACTION
protected String openDialog
protected String openDialogTitle
protected String onClickTopics
protected String validate
protected String validateFunction
protected String button
protected String buttonIcon
protected String buttonIconSecondary
protected String buttonText
protected String clearForm
protected String resetForm
protected String iframe
protected String replaceTarget
public Anchor(com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
public String getDefaultOpenTemplate()
getDefaultOpenTemplate in class org.apache.struts2.components.ClosingUIBeanprotected String getDefaultTemplate()
getDefaultTemplate in class org.apache.struts2.components.UIBeanpublic String getComponentName()
public void evaluateExtraParams()
evaluateExtraParams in class AbstractRemoteBeanpublic void setTheme(String theme)
setTheme in class org.apache.struts2.components.UIBeanpublic String getTheme()
getTheme in class org.apache.struts2.components.UIBeanpublic void setOpenDialog(String openDialog)
public void setOpenDialogTitle(String openDialogTitle)
public void setOnClickTopics(String onClickTopics)
public void setButton(String button)
setButton in interface ButtonBeanpublic void setButtonIcon(String buttonIcon)
setButtonIcon in interface ButtonBeanpublic void setButtonIconSecondary(String buttonIconSecondary)
setButtonIconSecondary in interface ButtonBeanpublic void setButtonText(String buttonText)
setButtonText in interface ButtonBeanpublic void setValidateFunction(String validateFunction)
public void setValidate(String validate)
public void setClearForm(String clearForm)
public void setResetForm(String resetForm)
public void setIframe(String iframe)
public void setReplaceTarget(String replaceTarget)
Copyright © 2018. All rights reserved.