Class IncludeTagImpl

    • Constructor Detail

      • IncludeTagImpl

        public IncludeTagImpl()
    • Method Detail

      • getTemplateContent

        public LayoutTag getTemplateContent()
        Returns the tree representation of the included template source
        Specified by:
        getTemplateContent in interface IncludeTag
        Returns:
        LayoutTag
      • populateTemplate

        public void populateTemplate​(java.lang.String fileName,
                                     LayoutSource layoutSource,
                                     LayoutParser layoutParser)
        Retrieves the content of the included external file and sets the content on the tag
        Specified by:
        populateTemplate in interface IncludeTag
        Parameters:
        fileName - - The location of the external file
        layoutSource - - The layoutSource to load the external file
        layoutParser - - The layoutParser to parse the external file
      • render

        public void render​(MarkupOutput markup,
                           LayoutContext context)
                    throws MalformedMethodException
        This method calls the rendering on the dynamically generated layoutTag The includeTag doesn't render its static tree structure. (1) context == null, print out layout-related tags (2) context != null, render dynamice content from layout-related tags
        Specified by:
        render in interface Tag
        Overrides:
        render in class TagImpl
        Parameters:
        markup - MarkupOutput
        context - LayoutContext
        Throws:
        RenderUnsuccessfulException
        MalformedMethodException - thrown if error occurs at rendering.