Class ValueTagHelper

    • Constructor Detail

      • ValueTagHelper

        public ValueTagHelper()
    • Method Detail

      • cleanState

        public void cleanState()
        Resets the state of the tag library, by cleaning the values of the properties initialized for this tag.
        Overrides:
        cleanState in class MstrPageTagHelper
      • getContent

        public MarkupOutput getContent()
                                throws java.io.IOException
        Obtains the contents to render based on the attributes defined (if existing).
        Specified by:
        getContent in class AbstractNoBodyTagHelper
        Returns:
        a MarkupOutput instance initialized with the contents to display
        Throws:
        java.io.IOException - if an error happens while getting the contents to render.
      • setName

        public void setName​(java.lang.String value)
        Indicates the name of the variable whose value we are supposed to render.
        Parameters:
        value - The name of the variable whose value we are supposed to render.
      • setType

        public void setType​(java.lang.String value)
        Indicates the type of the variable whose value we are supposed to render.
        The list of valid values for this attribute include:
      • requestKey will look for the property name in the RequestKeys instance available
      • browserSetting will look for the property name in the BrowserSettings instance available
      • systemPreference will look for the property name in the Preferences instance available for System Preferences
      • preference will look for the property name in the Preferences instance available for User Preferences
      • config will look for the property name in the configuration parameters as specified in the web.xml file
      • enum will look for the property name in the enumeration specified in the name argument.
      • browserSpecificCSS will render a string with the name of the CSS to be used based on the user-agent from the browser.
      • httpSession will look for the property name in the httpSession stored in ServiceContainer instance
Parameters:
value - The type of the variable whose value we are supposed to render.