Examples of RequestCycle


Examples of org.apache.wicket.request.cycle.RequestCycle

   * @see org.apache.wicket.page.IPageManagerContext#setRequestData(Object)
   */
  @Override
  public void setRequestData(final Object data)
  {
    RequestCycle requestCycle = RequestCycle.get();
    if (requestCycle == null)
    {
      throw new IllegalStateException("Not a request thread.");
    }
    requestCycle.setMetaData(requestCycleMetaDataKey, data);
  }
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle

    Session session = ThreadContext.getSession();

    if (session == null)
    {
      // no session is available via ThreadContext, so lookup in session store
      RequestCycle requestCycle = RequestCycle.get();
      if (requestCycle != null)
      {
        session = Application.get().getSessionStore().lookup(requestCycle.getRequest());
        if (session != null)
        {
          ThreadContext.setSession(session);
        }
      }
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle

    return id;
  }

  private void updateId()
  {
    RequestCycle requestCycle = RequestCycle.get();
    if (requestCycle != null)
    {
      id = getSessionStore().getSessionId(requestCycle.getRequest(), false);
    }
  }
View Full Code Here

Examples of org.apache.wicket.request.cycle.RequestCycle

   */
  public final Serializable getAttribute(final String name)
  {
    if (!isTemporary())
    {
      RequestCycle cycle = RequestCycle.get();
      if (cycle != null)
      {
        return getSessionStore().getAttribute(cycle.getRequest(), name);
      }
    }
    else
    {
      if (temporarySessionAttributes != null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.