Interface AjaxResponseRenderer

    • Method Detail

      • addRender

        AjaxResponseRenderer addRender​(String clientId,
                                       Object renderer)
        Queues the renderer to render markup for the client-side element with the provided id.
        Parameters:
        clientId - client id of zone to update with the content from the renderer
        renderer - a Block, Component or other object that can be coerced to RenderCommand.
        Returns:
        the renderer, for a fluid interface
      • addRender

        AjaxResponseRenderer addRender​(ClientBodyElement zone)
        Queues an update to the zone, using the zone's body as the new content.
        Parameters:
        zone - the element that contains both a client id and a body (this is primarily used to represent a Zone component).
        Returns:
        this renderer, for a fluid interface
      • addCallback

        AjaxResponseRenderer addCallback​(JavaScriptCallback callback)
        Queues a callback to execute during the partial markup render. The callback is added as a filter; the callback is invoked before the rest of the rendering pipeline is invoked.
        Parameters:
        callback - object to be invoked
        Returns:
        this renderer, for a fluid interface
      • addCallback

        AjaxResponseRenderer addCallback​(Runnable callback)
        Queues a callback to execute during the partial markup render. . The callback is added as a filter; the callback is invoked before the rest of the rendering pipeline is invoked.
        Parameters:
        callback - object to be invoked
        Returns:
        this renderer, for a fluid interface
      • addCallback

        AjaxResponseRenderer addCallback​(JSONCallback callback)
        Queues a callback to execute during the partial markup render. The callback is added as a filter; the callback is invoked before the rest of the rendering pipeline is invoked.
        Parameters:
        callback - object o be invoked
        Returns:
        this renderer, for a fluid interface
      • setupPartial

        void setupPartial​(String pageName)
        Initializes partial response rendering by identifying the page "responsible" for the response. This is mostly used for selecting the character set for the response.
        Parameters:
        pageName - identifies page to render
        Since:
        5.4