Class JEEWebGlobalAjaxEvent

java.lang.Object
org.wicketstuff.jeeweb.ajax.JEEWebGlobalAjaxEvent

public class JEEWebGlobalAjaxEvent extends Object
Wraps the created ajax request target and the page parameters received by the ajax request, to provide them via event to the current rendered page.
Author:
Tobias Soloschenko
  • Constructor Details

  • Method Details

    • getAjaxRequestTarget

      public AjaxRequestTarget getAjaxRequestTarget()
      Gets the ajax request target created during the ajax call
      Returns:
      the ajax request target
    • setAjaxRequestTarget

      public void setAjaxRequestTarget(AjaxRequestTarget ajaxRequestTarget)
      Sets the ajax request target during the ajax call
      Parameters:
      ajaxRequestTarget - the ajax request target
    • getPageParameters

      public PageParameters getPageParameters()
      Gets the page parameters received by the ajax call
      Returns:
      the page parameters
    • setPageParameters

      public void setPageParameters(PageParameters pageParameters)
      Sets the page parameter received by the ajax call
      Parameters:
      pageParameters - the page parameters
    • getPostParameters

      public IRequestParameters getPostParameters()
      Gets the post parameters received by the ajax call
      Returns:
      the post parameters
    • setPostParameters

      public void setPostParameters(IRequestParameters postParameters)
      Sets the post parameters during the request call
      Parameters:
      postParameters - the post parameters
    • getCastedEvent

      public static JEEWebGlobalAjaxEvent getCastedEvent(IEvent<?> event)
      Gets the event object from the original event. Only used to make the code a little bit smarter.
      Parameters:
      event - the event received by the page
      Returns:
      the event to get the ajax request target and the parameters from