Class AjaxOperation

    • Constructor Detail

      • AjaxOperation

        public AjaxOperation​(String triggerId)
        Creates an AjaxOperation for Internal AJAX Operation.
        Parameters:
        triggerId - the trigger id. WServlet uses this as a look-up to obtain the correct AjaxOperation.
      • AjaxOperation

        public AjaxOperation​(String triggerId,
                             String targetId)
        Creates an AjaxOperation.
        Parameters:
        triggerId - the trigger id. WServlet uses this as a look-up to obtain the correct AjaxOperation.
        targetId - the id of the target component.
      • AjaxOperation

        public AjaxOperation​(String triggerId,
                             List<String> targetIds)
        Creates an AjaxOperation.
        Parameters:
        triggerId - the trigger id. WServlet uses this as a look-up to obtain the correct AjaxOperation.
        targetIds - the ids of the target components.
    • Method Detail

      • setTargetContainerId

        public void setTargetContainerId​(String targetContainerId)
        Sets the target container id. Allows you to replace a child component without affecting the parent. This is necessary for lazy loading components, where child content is not initially present, and can therefore not be replaced.
        Parameters:
        targetContainerId - the target container's id.
      • getTargetContainerId

        public String getTargetContainerId()
        Returns:
        the target container's id
      • getTriggerId

        public String getTriggerId()
        Returns:
        Returns the trigger id.
      • getTargets

        public List<String> getTargets()
        Returns:
        Returns the target.
      • isInternalAjaxRequest

        public boolean isInternalAjaxRequest()
        Returns:
        true if AJAX operation is an internal AJAX request