Package org.apache.wicket.request

Examples of org.apache.wicket.request.Request


    {
      return;
    }

    ISessionStore store = getSessionStore();
    Request request = RequestCycle.get().getRequest();
    if (store.lookup(request) == null)
    {
      // explicitly create a session
      id = store.getSessionId(request, true);
      // bind it
View Full Code Here


   */
  public void internalDetach()
  {
    if (dirty)
    {
      Request request = RequestCycle.get().getRequest();
      getSessionStore().flushSession(request, this);
    }
    dirty = false;
  }
View Full Code Here

        throw new IllegalStateException(
          "Cannot set the attribute: no RequestCycle available.  If you get this error when using WicketTester.startPage(Page), make sure to call WicketTester.createRequestCycle() beforehand.");
      }

      ISessionStore store = getSessionStore();
      Request request = cycle.getRequest();

      // extra check on session binding event
      if (value == this)
      {
        Object current = store.getAttribute(request, name);
View Full Code Here

  private boolean isAjax(RequestCycle requestCycle)
  {
    boolean isAjax = false;

    Request request = requestCycle.getRequest();
    if (request instanceof WebRequest)
    {
      WebRequest webRequest = (WebRequest)request;
      isAjax = webRequest.isAjax();
    }
View Full Code Here

  @Test
  public void decode11()
  {
    final Url url = Url.parse(context.getBookmarkableIdentifier() + "/" + PAGE_CLASS_NAME);

    Request request = new Request()
    {
      @Override
      public Url getUrl()
      {
        return url;
View Full Code Here

  @Test
  public void decode12()
  {
    final Url url = Url.parse(context.getBookmarkableIdentifier() + "/" + PAGE_CLASS_NAME);

    Request request = new Request()
    {
      @Override
      public Url getUrl()
      {
        return url;
View Full Code Here

  @Test
  public void decode13()
  {
    final Url url = Url.parse(context.getBookmarkableIdentifier() + "/" + PAGE_CLASS_NAME);

    Request request = new Request()
    {
      @Override
      public Url getUrl()
      {
        return url;
View Full Code Here

  private boolean isProcessingAjaxRequest()
  {

    RequestCycle rc = RequestCycle.get();
    Request request = rc.getRequest();
    if (request instanceof WebRequest)
    {
      return ((WebRequest)request).isAjax();
    }
    return false;
View Full Code Here

   * requests. Sometimes this method is useful when changes need to be checked without processing
   * a request.
   */
  public void applyRequest()
  {
    Request req = newServletWebRequest();
    requestCycle.setRequest(req);
    if (useRequestUrlAsBase)
    {
      requestCycle.getUrlRenderer().setBaseUrl(req.getUrl());
    }
  }
View Full Code Here

    return "function(event) { " + getCallbackScript() + "}";
  }

  @Override
  protected void respond(AjaxRequestTarget target) {
    Request r = getCalendar().getRequest();
    String eventId = r.getRequestParameters().getParameterValue("eventId").toString();
    String sourceId = r.getRequestParameters().getParameterValue("sourceId").toString();

    EventSource source = getCalendar().getEventManager().getEventSource(sourceId);
    Event event = source.getEventProvider().getEventForId(eventId);

    onClicked(new ClickedEvent(source, event), new CalendarResponse(getCalendar(), target));
View Full Code Here

TOP

Related Classes of org.apache.wicket.request.Request

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.