Class AjaxBehaviorRenderer

    • Field Detail

      • logger

        protected static final Logger logger
    • Constructor Detail

      • AjaxBehaviorRenderer

        public AjaxBehaviorRenderer()
    • Method Detail

      • getScript

        public String getScript​(ClientBehaviorContext behaviorContext,
                                ClientBehavior behavior)
        Description copied from class: ClientBehaviorRenderer

        Return the script that implements this ClientBehavior's client-side logic. The default implementation returns null.

        ClientBehaviorRenderer.getScript() implementations are allowed to return null to indicate that no script is required for this particular getScript() call. For example, a ClientBehaviorRenderer implementation may return null if the associated ClientBehavior is disabled.

        Overrides:
        getScript in class ClientBehaviorRenderer
        Parameters:
        behaviorContext - the ClientBehaviorContext that provides properties that might influence this getScript() call. Note that ClientBehaviorContext instances are short-lived objects that are only valid for the duration of the call to getScript(). ClientBehaviorRenderer implementations must not hold onto references to ClientBehaviorContexts.
        behavior - the ClientBehavior instance that generates script.
        Returns:
        script that provides the client-side behavior, or null if no script is required.