Class JuilElementTagHelper

    • Constructor Detail

      • JuilElementTagHelper

        public JuilElementTagHelper()
    • Method Detail

      • getContent

        public MarkupOutput getContent()
                                throws java.io.IOException
        This method generates the html/javascript to register a model block and view block (directly retrieved from BlockFactory instance. It generates the following:
        Specified by:
        getContent in class AbstractNoBodyTagHelper
        Returns:
        a MarkupOutput instance initialized with the contents to be displayed
        Throws:
        java.io.IOException - if an error happens while getting the contents to render.
      • setModelBlock

        public void setModelBlock​(java.lang.String value)
        Sets the name of the model block to be retrieved from BlockFactory.
        Parameters:
        value - the name of the model block as specified in BlockLibary.xml
      • setViewBlock

        public void setViewBlock​(java.lang.String value)
        Sets the name of the view block to be retrieved from BlockFactory.
        Parameters:
        value - the name of the view block as specified in BlockLibary.xml
      • setModelId

        public void setModelId​(java.lang.String value)
        Sets the id of the model block. If it's not set the tag will pick up modelBlockName postfix by "_model" as the id.
        Parameters:
        value - the id of the model block.
      • setViewId

        public void setViewId​(java.lang.String value)
        Sets the id of the view block. If it's not set the tag will pick up viewBlockName postfix by "_view" as the id.
        Parameters:
        value - the id of the view block.
      • setRenderView

        public void setRenderView​(java.lang.String value)
        Specifies whether to call the render() on the view block.
        Parameters:
        value - "true" to render and "false" to skip.
      • setGenScript

        public void setGenScript​(java.lang.String value)
        Specifies whether to render the layout scripts for the view block or not.
        Parameters:
        value - "true" to render and "false" to skip.
      • cleanState

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