Class AbstractUITag

java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
jakarta.servlet.jsp.tagext.BodyTagSupport
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.BodyTag, jakarta.servlet.jsp.tagext.DynamicAttributes, jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
Direct Known Subclasses:
AbstractClosingTag, AbstractListTag, ActionErrorTag, ActionMessageTag, CheckboxTag, ComponentTag, DateTextFieldTag, DebugTag, FieldErrorTag, FileTag, HeadTag, HiddenTag, LabelTag, LinkTag, ResetTag, ScriptTag, TextareaTag, TextFieldTag, TokenTag

public abstract class AbstractUITag extends ComponentTagSupport implements jakarta.servlet.jsp.tagext.DynamicAttributes
Abstract base class for all UI tags.
See Also:
  • Field Details

    • cssClass

      protected String cssClass
    • cssErrorClass

      protected String cssErrorClass
    • cssStyle

      protected String cssStyle
    • cssErrorStyle

      protected String cssErrorStyle
    • title

      protected String title
    • disabled

      protected String disabled
    • label

      protected String label
    • labelSeparator

      protected String labelSeparator
    • labelPosition

      protected String labelPosition
    • requiredPosition

      protected String requiredPosition
    • errorPosition

      protected String errorPosition
    • name

      protected String name
    • requiredLabel

      protected String requiredLabel
    • tabindex

      protected String tabindex
    • value

      protected String value
    • template

      protected String template
    • theme

      protected String theme
    • templateDir

      protected String templateDir
    • onclick

      protected String onclick
    • ondblclick

      protected String ondblclick
    • onmousedown

      protected String onmousedown
    • onmouseup

      protected String onmouseup
    • onmouseover

      protected String onmouseover
    • onmousemove

      protected String onmousemove
    • onmouseout

      protected String onmouseout
    • onfocus

      protected String onfocus
    • onblur

      protected String onblur
    • onkeypress

      protected String onkeypress
    • onkeydown

      protected String onkeydown
    • onkeyup

      protected String onkeyup
    • onselect

      protected String onselect
    • onchange

      protected String onchange
    • accesskey

      protected String accesskey
    • id

      protected String id
    • key

      protected String key
    • tooltip

      protected String tooltip
    • tooltipConfig

      protected String tooltipConfig
    • javascriptTooltip

      protected String javascriptTooltip
    • tooltipDelay

      protected String tooltipDelay
    • tooltipCssClass

      protected String tooltipCssClass
    • tooltipIconPath

      protected String tooltipIconPath
    • dynamicAttributes

      protected Map<String,String> dynamicAttributes
  • Constructor Details

    • AbstractUITag

      public AbstractUITag()
  • Method Details

    • populateParams

      protected void populateParams()
      Description copied from class: ComponentTagSupport
      Define method to populate component state based on the Tag attributes. Descendants should override this method for custom behaviour, but should always call the ancestor method when doing so.
      Overrides:
      populateParams in class ComponentTagSupport
    • setId

      public void setId(String id)
      Overrides:
      setId in class jakarta.servlet.jsp.tagext.TagSupport
    • setCssClass

      public void setCssClass(String cssClass)
    • setCssStyle

      public void setCssStyle(String cssStyle)
    • setStyle

      public void setStyle(String cssStyle)
    • setCssErrorClass

      public void setCssErrorClass(String cssErrorClass)
    • setCssErrorStyle

      public void setCssErrorStyle(String cssErrorStyle)
    • setTitle

      public void setTitle(String title)
    • setDisabled

      public void setDisabled(String disabled)
    • setLabel

      public void setLabel(String label)
    • setLabelPosition

      public void setLabelPosition(String labelPosition)
    • setRequiredPosition

      public void setRequiredPosition(String requiredPosition)
    • setErrorPosition

      public void setErrorPosition(String errorPosition)
    • setName

      public void setName(String name)
    • setRequiredLabel

      public void setRequiredLabel(String requiredLabel)
    • setTabindex

      public void setTabindex(String tabindex)
    • setValue

      public void setValue(String value)
    • setTemplateDir

      public void setTemplateDir(String templateDir)
    • setTemplate

      public void setTemplate(String template)
    • setTheme

      public void setTheme(String theme)
    • setOnclick

      public void setOnclick(String onclick)
    • setOndblclick

      public void setOndblclick(String ondblclick)
    • setOnmousedown

      public void setOnmousedown(String onmousedown)
    • setOnmouseup

      public void setOnmouseup(String onmouseup)
    • setOnmouseover

      public void setOnmouseover(String onmouseover)
    • setOnmousemove

      public void setOnmousemove(String onmousemove)
    • setOnmouseout

      public void setOnmouseout(String onmouseout)
    • setOnfocus

      public void setOnfocus(String onfocus)
    • setOnblur

      public void setOnblur(String onblur)
    • setOnkeypress

      public void setOnkeypress(String onkeypress)
    • setOnkeydown

      public void setOnkeydown(String onkeydown)
    • setOnkeyup

      public void setOnkeyup(String onkeyup)
    • setOnselect

      public void setOnselect(String onselect)
    • setOnchange

      public void setOnchange(String onchange)
    • setTooltip

      public void setTooltip(String tooltip)
    • setTooltipConfig

      public void setTooltipConfig(String tooltipConfig)
    • setAccesskey

      public void setAccesskey(String accesskey)
    • setKey

      public void setKey(String key)
    • setJavascriptTooltip

      public void setJavascriptTooltip(String javascriptTooltip)
    • setTooltipCssClass

      public void setTooltipCssClass(String tooltipCssClass)
    • setTooltipDelay

      public void setTooltipDelay(String tooltipDelay)
    • setTooltipIconPath

      public void setTooltipIconPath(String tooltipIconPath)
    • setLabelSeparator

      public void setLabelSeparator(String labelSeparator)
    • setDynamicAttribute

      public void setDynamicAttribute(String uri, String localName, Object value) throws jakarta.servlet.jsp.JspException
      Specified by:
      setDynamicAttribute in interface jakarta.servlet.jsp.tagext.DynamicAttributes
      Throws:
      jakarta.servlet.jsp.JspException
    • setPerformClearTagStateForTagPoolingServers

      public void setPerformClearTagStateForTagPoolingServers(boolean performClearTagStateForTagPoolingServers)
      Must declare the setter at the descendant Tag class level in order for the tag handler to locate the method.
      Overrides:
      setPerformClearTagStateForTagPoolingServers in class StrutsBodyTagSupport
      Parameters:
      performClearTagStateForTagPoolingServers - true if tag state should be cleared, false otherwise.
    • clearTagStateForTagPoolingServers

      protected void clearTagStateForTagPoolingServers()
      Description copied from class: StrutsBodyTagSupport
      Provide a mechanism to clear tag state, to handle servlet container JSP tag pooling behaviour with some servers, such as Glassfish.

      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.

      Overrides:
      clearTagStateForTagPoolingServers in class ComponentTagSupport