Class ContextImage

    • Constructor Detail

      • ContextImage

        public ContextImage​(String id,
                            IModel<String> contextRelativePath)
        Constructor
        Parameters:
        id - the component id
        contextRelativePath - context-relative path eg images/border.jpg
      • ContextImage

        public ContextImage​(String id,
                            String contextRelativePath)
        Constructor
        Parameters:
        id - the component id
        contextRelativePath - context-relative path eg images/border.jpg
      • ContextImage

        public ContextImage​(String id)
        Constructor. Uses the url from the src markup attribute and makes it relative to the context path
        Parameters:
        id - the component id