Class ContextPathGenerator

    • Constructor Detail

      • ContextPathGenerator

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

        public ContextPathGenerator​(String contextRelativePath)
        Constructor
        Parameters:
        contextRelativePath - context-relative path, eg images/border.jpg
    • Method Detail

      • onComponentTag

        public void onComponentTag​(Component component,
                                   ComponentTag tag)
        Called any time a component that has this behavior registered is rendering the component tag.
        Overrides:
        onComponentTag in class Behavior
        Parameters:
        component - the component that renders this tag currently
        tag - the tag that is rendered
      • detach

        public void detach​(Component component)
        Allows the behavior to detach any state it has attached during request processing.
        Overrides:
        detach in class Behavior
        Parameters:
        component - the component that initiates the detachment of this behavior