public class Dialog extends AbstractRemoteBean
Renders a Dialog with local or remote content
Examples
<sj:dialog id="mydialog1" title="Local Dialog"> Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate. </sj:dialog>
<s:url id="remoteurl" action="myremoteaction"/>
<sj:dialog id="mydialog2" href="%{remoteurl}" title="Remote Dialog"/>
<s:url id="remoteurl" action="myremoteaction"/>
<sj:dialog id="mydialog3" href="%{remoteurl}" title="Modal Remote Dialog with Effects" modal="true" showEffect="slide" hideEffect="explode"/>
<s:url id="remoteurl" action="myremoteaction"/> <sj:dialog id="mydialog5" href="%{remoteurl}" title="Remote Dialog open on Click" autoOpen="false" modal="true"/>
<sj:a openDialog="mydialog5">Open Dialog</sj:a>
| Modifier and Type | Field and Description |
|---|---|
protected String |
autoOpen |
protected String |
buttons |
protected String |
closeOnEscape |
protected String |
closeTopics |
static String |
COMPONENT_NAME |
protected String |
destroyTopics |
protected String |
dialogClass |
protected String |
draggable |
protected String |
height |
protected String |
hideEffect |
static String |
JQUERYACTION |
protected String |
maxHeight |
protected String |
maxWidth |
protected String |
minHeight |
protected String |
minWidth |
protected String |
modal |
protected String |
onBeforeCloseTopics |
protected String |
onCloseTopics |
protected String |
onFocusTopics |
protected String |
onOpenTopics |
protected String |
openTopics |
protected String |
overlayColor |
protected String |
overlayOpacity |
protected String |
position |
static Random |
RANDOM |
protected String |
resizable |
protected String |
showEffect |
static String |
TEMPLATE |
static String |
TEMPLATE_CLOSE |
protected String |
title |
protected String |
width |
protected String |
zindex |
dataType, effect, effectDuration, effectMode, effectOptions, errorElementId, errorText, formIds, href, indicator, listenTopics, loadingText, onEffectCompleteTopics, requestType, targets, timeoutonAfterValidationTopics, onAlwaysTopics, onBeforeTopics, onBlurTopics, onChangeTopics, onCompleteTopics, onDisableTopics, onEnableTopics, onErrorTopics, onSuccessTopicsaccesskey, cssClass, cssErrorClass, cssErrorStyle, cssStyle, defaultTemplateDir, defaultUITheme, disabled, dynamicAttributes, id, javascriptTooltip, key, label, labelPosition, labelSeparator, name, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, request, required, requiredposition, response, standardAttributesMap, tabindex, template, templateDir, templateEngineManager, templateSuffix, theme, tooltip, tooltipConfig, tooltipCssClass, tooltipDelay, tooltipIconPath, value| Constructor and Description |
|---|
Dialog(com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
setDataType, setEffect, setEffectDuration, setEffectMode, setEffectOptions, setErrorElementId, setErrorText, setFormIds, setHref, setIndicator, setListenTopics, setLoadingText, setOnEffectCompleteTopics, setRequestType, setTargets, setTimeoutsetOnAfterValidationTopics, setOnAlwaysTopics, setOnBeforeTopics, setOnBlurTopics, setOnChangeTopics, setOnCompleteTopics, setOnDisableTopics, setOnEnableTopics, setOnErrorTopics, setOnSuccessTopicsaddFormParameter, buildTemplateName, copyParams, enableAncestorFormCustomOnsubmit, end, ensureAttributeSafelyNotEscaped, escape, evaluateNameValue, evaluateParams, getId, getStandardAttributes, getTemplate, getTemplateDir, getTooltipConfig, getValueClassType, mergeTemplate, populateComponentHtmlId, setAccesskey, setCssClass, setCssErrorClass, setCssErrorStyle, setCssStyle, setDefaultTemplateDir, setDefaultUITheme, setDisabled, setDynamicAttributes, setId, setJavascriptTooltip, setKey, setLabel, setLabelposition, setLabelSeparator, setName, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setRequired, setRequiredposition, setTabindex, setTemplate, setTemplateDir, setTemplateEngineManager, setTooltip, setTooltipConfig, setTooltipCssClass, setTooltipDelay, setTooltipIconPath, setValueaddAllParameters, addParameter, altSyntax, completeExpressionIfAltSyntax, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findStringIfAltSyntax, findValue, findValue, findValue, getComponentStack, getParameters, getStack, popComponentStack, setActionMapper, setThrowExceptionsOnELFailure, setUrlHelper, stripExpressionIfAltSyntax, toString, usesBodypublic static final String JQUERYACTION
public static final String TEMPLATE
public static final String TEMPLATE_CLOSE
public static final String COMPONENT_NAME
public static final transient Random RANDOM
protected String buttons
protected String draggable
protected String dialogClass
protected String height
protected String modal
protected String position
protected String resizable
protected String title
protected String width
protected String zindex
protected String autoOpen
protected String showEffect
protected String hideEffect
protected String overlayColor
protected String overlayOpacity
protected String maxHeight
protected String maxWidth
protected String minHeight
protected String minWidth
protected String closeOnEscape
protected String onOpenTopics
protected String onCloseTopics
protected String onFocusTopics
protected String onBeforeCloseTopics
protected String openTopics
protected String closeTopics
protected String destroyTopics
public Dialog(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 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 setButtons(String buttons)
public void setDraggable(String draggable)
public void setDialogClass(String dialogClass)
public void setHeight(String height)
public void setModal(String modal)
public void setPosition(String position)
public void setResizable(String resizable)
public void setTitle(String title)
setTitle in class org.apache.struts2.components.UIBeanpublic void setWidth(String width)
public void setZindex(String zindex)
public void setAutoOpen(String autoOpen)
public void setShowEffect(String showEffect)
public void setHideEffect(String hideEffect)
public void setOverlayColor(String overlayColor)
public void setOverlayOpacity(String overlayOpacity)
public void setMaxHeight(String maxHeight)
public void setMaxWidth(String maxWidth)
public void setMinHeight(String minHeight)
public void setMinWidth(String minWidth)
public void setCloseOnEscape(String closeOnEscape)
public void setOnOpenTopics(String onOpenTopics)
public void setOnCloseTopics(String onCloseTopics)
public void setOnFocusTopics(String onFocusTopics)
setOnFocusTopics in class AbstractTopicsBeanpublic void setOnBeforeCloseTopics(String onBeforeCloseTopics)
public void setOpenTopics(String openTopics)
public void setCloseTopics(String closeTopics)
public void setDestroyTopics(String destroyTopics)
Copyright © 2012. All Rights Reserved.