public abstract class AbstractUITag extends ComponentTagSupport implements javax.servlet.jsp.tagext.DynamicAttributes
component
Constructor and Description |
---|
AbstractUITag() |
Modifier and Type | Method and Description |
---|---|
protected void |
clearTagStateForTagPoolingServers()
Provide a mechanism to clear tag state, to handle servlet container JSP tag pooling
behaviour with some servers, such as Glassfish.
|
protected void |
populateParams()
Define method to populate component state based on the Tag parameters.
|
void |
setAccesskey(String accesskey) |
void |
setClass(String cssClass)
Deprecated.
Use
setCssClass(String) instead |
void |
setCssClass(String cssClass) |
void |
setCssErrorClass(String cssErrorClass) |
void |
setCssErrorStyle(String cssErrorStyle) |
void |
setCssStyle(String cssStyle) |
void |
setDisabled(String disabled) |
void |
setDynamicAttribute(String uri,
String localName,
Object value) |
void |
setErrorPosition(String errorPosition) |
void |
setId(String id) |
void |
setJavascriptTooltip(String javascriptTooltip) |
void |
setKey(String key) |
void |
setLabel(String label) |
void |
setLabelPosition(String labelPosition) |
void |
setLabelSeparator(String labelSeparator) |
void |
setName(String name) |
void |
setOnblur(String onblur) |
void |
setOnchange(String onchange) |
void |
setOnclick(String onclick) |
void |
setOndblclick(String ondblclick) |
void |
setOnfocus(String onfocus) |
void |
setOnkeydown(String onkeydown) |
void |
setOnkeypress(String onkeypress) |
void |
setOnkeyup(String onkeyup) |
void |
setOnmousedown(String onmousedown) |
void |
setOnmousemove(String onmousemove) |
void |
setOnmouseout(String onmouseout) |
void |
setOnmouseover(String onmouseover) |
void |
setOnmouseup(String onmouseup) |
void |
setOnselect(String onselect) |
void |
setPerformClearTagStateForTagPoolingServers(boolean performClearTagStateForTagPoolingServers)
Request that the tag state be cleared during
StrutsBodyTagSupport.doEndTag() processing,
which may help with certain edge cases with tag logic running on servers that implement JSP Tag Pooling. |
void |
setRequiredLabel(String requiredLabel) |
void |
setRequiredPosition(String requiredPosition) |
void |
setStyle(String cssStyle) |
void |
setTabindex(String tabindex) |
void |
setTemplate(String template) |
void |
setTemplateDir(String templateDir) |
void |
setTheme(String theme) |
void |
setTitle(String title) |
void |
setTooltip(String tooltip) |
void |
setTooltipConfig(String tooltipConfig) |
void |
setTooltipCssClass(String tooltipCssClass) |
void |
setTooltipDelay(String tooltipDelay) |
void |
setTooltipIconPath(String tooltipIconPath) |
void |
setValue(String value) |
doEndTag, doStartTag, getBean, getComponent, populatePerformClearTagStateForTagPoolingServersParam
findString, findValue, findValue, getBody, getPerformClearTagStateForTagPoolingServers, getStack, release, toString
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
protected String cssClass
protected String cssErrorClass
protected String cssStyle
protected String cssErrorStyle
protected String title
protected String disabled
protected String label
protected String labelSeparator
protected String labelPosition
protected String requiredPosition
protected String errorPosition
protected String name
protected String requiredLabel
protected String tabindex
protected String value
protected String template
protected String theme
protected String templateDir
protected String onclick
protected String ondblclick
protected String onmousedown
protected String onmouseup
protected String onmouseover
protected String onmousemove
protected String onmouseout
protected String onfocus
protected String onblur
protected String onkeypress
protected String onkeydown
protected String onkeyup
protected String onselect
protected String onchange
protected String accesskey
protected String id
protected String key
protected String tooltip
protected String tooltipConfig
protected String javascriptTooltip
protected String tooltipDelay
protected String tooltipCssClass
protected String tooltipIconPath
protected void populateParams()
ComponentTagSupport
Descendants should override this method for custom behaviour, but should always call the ancestor method when doing so.
populateParams
in class ComponentTagSupport
public void setId(String id)
setId
in class javax.servlet.jsp.tagext.TagSupport
public void setCssClass(String cssClass)
@Deprecated public void setClass(String cssClass)
setCssClass(String)
insteadpublic void setCssStyle(String cssStyle)
public void setStyle(String cssStyle)
public void setCssErrorClass(String cssErrorClass)
public void setCssErrorStyle(String cssErrorStyle)
public void setTitle(String title)
public void setDisabled(String disabled)
public void setLabel(String label)
public void setLabelPosition(String labelPosition)
public void setRequiredPosition(String requiredPosition)
public void setErrorPosition(String errorPosition)
public void setName(String name)
public void setRequiredLabel(String requiredLabel)
public void setTabindex(String tabindex)
public void setValue(String value)
public void setTemplateDir(String templateDir)
public void setTemplate(String template)
public void setTheme(String theme)
public void setOnclick(String onclick)
public void setOndblclick(String ondblclick)
public void setOnmousedown(String onmousedown)
public void setOnmouseup(String onmouseup)
public void setOnmouseover(String onmouseover)
public void setOnmousemove(String onmousemove)
public void setOnmouseout(String onmouseout)
public void setOnfocus(String onfocus)
public void setOnblur(String onblur)
public void setOnkeypress(String onkeypress)
public void setOnkeydown(String onkeydown)
public void setOnkeyup(String onkeyup)
public void setOnselect(String onselect)
public void setOnchange(String onchange)
public void setTooltip(String tooltip)
public void setTooltipConfig(String tooltipConfig)
public void setAccesskey(String accesskey)
public void setKey(String key)
public void setJavascriptTooltip(String javascriptTooltip)
public void setTooltipCssClass(String tooltipCssClass)
public void setTooltipDelay(String tooltipDelay)
public void setTooltipIconPath(String tooltipIconPath)
public void setLabelSeparator(String labelSeparator)
public void setDynamicAttribute(String uri, String localName, Object value) throws javax.servlet.jsp.JspException
setDynamicAttribute
in interface javax.servlet.jsp.tagext.DynamicAttributes
javax.servlet.jsp.JspException
public void setPerformClearTagStateForTagPoolingServers(boolean performClearTagStateForTagPoolingServers)
StrutsBodyTagSupport
StrutsBodyTagSupport.doEndTag()
processing,
which may help with certain edge cases with tag logic running on servers that implement JSP Tag Pooling.
Note: Even though the Tag classes extend this class StrutsBodyTagSupport
, and this method
StrutsBodyTagSupport.setPerformClearTagStateForTagPoolingServers(boolean)
exists in the method hierarchy,
the JSP processing requires us to explicitly override it in every Tag class in order for the Tag handler
method to be visible to the JSP processing.
Defining a setter in the superclass alone is insufficient (results in "Cannot find a setter method for the attribute").
See StrutsBodyTagSupport.clearTagStateForTagPoolingServers()
for additional details.
Warning: Setting this value to true may allow for the desired behaviour, but doing so
may violate the JSP specification. Set to true at your own risk.
setPerformClearTagStateForTagPoolingServers
in class StrutsBodyTagSupport
performClearTagStateForTagPoolingServers
- true if tag state should be cleared, false otherwise.protected void clearTagStateForTagPoolingServers()
StrutsBodyTagSupport
Usage: Override this method in descendant classes to clear any state that might cause issues should the
servlet container re-use a cached instance of the tag object. If the descendant class does not
declare any new field members then it should not be strictly necessary to call this method there.
Typically that means calling the ancestor's ComponentTagSupport.clearTagStateForTagPoolingServers()
method first, then resetting instance variables at the current level to their default state.
Note: If the descendant overrides StrutsBodyTagSupport.doEndTag()
, and does not call
super.doEndTag(), then the descendant should call this method in the descendant doEndTag() method
to ensure consistent clearing of tag state.
clearTagStateForTagPoolingServers
in class ComponentTagSupport
Copyright © 2000–2024 Apache Software Foundation. All rights reserved.