Package org.apache.wicket

Examples of org.apache.wicket.RequestContext


          CharSequence url = urlFor(IOnChangeListener.INTERFACE);

          Form<?> form = findParent(Form.class);
          if (form != null)
          {
            RequestContext rc = RequestContext.get();
            if (rc.isPortletRequest())
            {
              // restore url back to real wicket path as its going to be interpreted
              // by the form itself
              url = ((PortletRequestContext)rc).getLastEncodedPath();
            }
View Full Code Here


      CharSequence url = group.urlFor(IOnChangeListener.INTERFACE);

      Form<?> form = group.findParent(Form.class);
      if (form != null)
      {
        RequestContext rc = RequestContext.get();
        if (rc.isPortletRequest())
        {
          // restore url back to real wicket path as its going to be interpreted by the
          // form itself
          url = ((PortletRequestContext)rc).getLastEncodedPath();
        }
View Full Code Here

          IOnChangeListener.INTERFACE));

      Form<?> form = findParent(Form.class);
      if (form != null)
      {
        RequestContext rc = RequestContext.get();
        if (rc.isPortletRequest())
        {
          // restore url back to real wicket path as its going to be interpreted by the
          // form itself
          // TODO NG
          // url = ((PortletRequestContext)rc).getLastEncodedPath();
View Full Code Here

    // TODO NG Escape
    response.renderJavascript("Wicket.Ajax.baseUrl=\"" +
      RequestCycle.get().getUrlRenderer().getBaseUrl() + "\";", "wicket-ajax-base-url");

    RequestContext context = RequestContext.get();
    if (context.isPortletRequest())
    {
      response.renderJavascript("Wicket.portlet=true", "wicket-ajax-portlet-flag");
    }
  }
View Full Code Here

  protected void createRequestContext(WebRequest request, WebResponse response)
  {
    if (filterPortletContext == null ||
      !filterPortletContext.createPortletRequestContext(request, response))
    {
      new RequestContext();
    }
  }
View Full Code Here

          CharSequence url = urlFor(IOnChangeListener.INTERFACE);

          Form<?> form = findParent(Form.class);
          if (form != null)
          {
            RequestContext rc = RequestContext.get();
            if (rc.isPortletRequest())
            {
              // restore url back to real wicket path as its going to be interpreted
              // by the form itself
              url = ((PortletRequestContext)rc).getLastEncodedPath();
            }
View Full Code Here

      CharSequence url = urlFor(IOnChangeListener.INTERFACE);

      Form<?> form = findParent(Form.class);
      if (form != null)
      {
        RequestContext rc = RequestContext.get();
        if (rc.isPortletRequest())
        {
          // restore url back to real wicket path as its going to be interpreted by the
          // form itself
          url = ((PortletRequestContext)rc).getLastEncodedPath();
        }
View Full Code Here

      CharSequence url = group.urlFor(IOnChangeListener.INTERFACE);

      Form<?> form = group.findParent(Form.class);
      if (form != null)
      {
        RequestContext rc = RequestContext.get();
        if (rc.isPortletRequest())
        {
          // restore url back to real wicket path as its going to be interpreted by the
          // form itself
          url = ((PortletRequestContext)rc).getLastEncodedPath();
        }
View Full Code Here

      CharSequence url = urlFor(IOnChangeListener.INTERFACE);

      Form<?> form = findParent(Form.class);
      if (form != null)
      {
        RequestContext rc = RequestContext.get();
        if (rc.isPortletRequest())
        {
          // restore url back to real wicket path as its going to be interpreted by the
          // form itself
          url = ((PortletRequestContext)rc).getLastEncodedPath();
        }
View Full Code Here

      CharSequence url = group.urlFor(IOnChangeListener.INTERFACE);

      Form<?> form = group.findParent(Form.class);
      if (form != null)
      {
        RequestContext rc = RequestContext.get();
        if (rc.isPortletRequest())
        {
          // restore url back to real wicket path as its going to be interpreted by the
          // form itself
          url = ((PortletRequestContext)rc).getLastEncodedPath();
        }
View Full Code Here

TOP

Related Classes of org.apache.wicket.RequestContext

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.