Class IfBeanValueTag

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

    public class IfBeanValueTag
    extends AbstractIfTag
    Since:
    MicroStrategy Web 7.3.1 or earlier
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport

        bodyContent
      • Fields inherited from class javax.servlet.jsp.tagext.TagSupport

        id, pageContext
      • Fields inherited from interface javax.servlet.jsp.tagext.BodyTag

        EVAL_BODY_BUFFERED, EVAL_BODY_TAG
      • Fields inherited from interface javax.servlet.jsp.tagext.IterationTag

        EVAL_BODY_AGAIN
      • Fields inherited from interface javax.servlet.jsp.tagext.Tag

        EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
    • Constructor Summary

      Constructors 
      Constructor Description
      IfBeanValueTag()  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      AbstractIfTagHelper getHelper()
      Method for retrieving the helper associated with the tag.
      void release()
      Utility method for cleaning up the properties on the custom tag instance.
      void setBean​(java.lang.String value)
      Indicates the name of the bean to search for, which will be used for evaluating the condition.
      void setName​(java.lang.String value)
      Deprecated.
      Use SetBean Instead.
      void setProperty​(java.lang.String value)
      Indicates the property or method to call from the bean specified on the name attribute value.
      void setValue​(java.lang.String value)
      Indicates the value that will be compared with the tag's property argument.
      • Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport

        doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
      • Methods inherited from class javax.servlet.jsp.tagext.TagSupport

        findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.servlet.jsp.tagext.Tag

        getParent, setPageContext, setParent
    • Constructor Detail

      • IfBeanValueTag

        public IfBeanValueTag()
    • Method Detail

      • release

        public void release()
        Utility method for cleaning up the properties on the custom tag instance.
        Specified by:
        release in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        release in class javax.servlet.jsp.tagext.BodyTagSupport
      • setName

        public void setName​(java.lang.String value)
        Deprecated.
        Use SetBean Instead.
        Indicates the name of the bean to search for, which will be used for evaluating the condition.
        The name of the bean indicated has to be a valid bean on the page being displayed, otherwise the condition evaluation will return False by default.
        Parameters:
        value - String with the name of the bean to search for.
      • setBean

        public void setBean​(java.lang.String value)
        Indicates the name of the bean to search for, which will be used for evaluating the condition.
        The name of the bean indicated has to be a valid bean on the page being displayed, otherwise the condition evaluation will return False by default.
        Parameters:
        value - String with the name of the bean to search for.
        Since:
        MicroStrategy Web 8.0.0
      • setProperty

        public void setProperty​(java.lang.String value)
        Indicates the property or method to call from the bean specified on the name attribute value.
        Usage:
        The value to assign to this attribute has to be the exact name of the method that will be called for evaluation. If the method is not found, then the condition will by default return False
        Parameters:
        value - String with the name of the method to call for evaluating the condition
      • setValue

        public void setValue​(java.lang.String value)
        Indicates the value that will be compared with the tag's property argument.
        The value assigned to this attribute will be specified as a String, therefore, the resulting value from calling the method specified on the property attribute will also be translated into a String. These two values will be compared and from there the resulting condition value will be obtained.
        Parameters:
        value - String with the value to use for comparing the property value.