Examples of IRequestCycleProcessor


Examples of org.apache.wicket.request.IRequestCycleProcessor

   *            The url which describes the component path and the interface to be called.
   */
  private void dispatchEvent(final Page page, final String url)
  {
    RequestCycle rc = RequestCycle.get();
    IRequestCycleProcessor processor = rc.getProcessor();
    final RequestParameters requestParameters = processor.getRequestCodingStrategy().decode(
      new FormDispatchRequest(rc.getRequest(), url));
    IRequestTarget rt = processor.resolve(rc, requestParameters);
    if (rt instanceof IListenerInterfaceRequestTarget)
    {
      IListenerInterfaceRequestTarget interfaceTarget = ((IListenerInterfaceRequestTarget)rt);
      interfaceTarget.getRequestListenerInterface().invoke(page, interfaceTarget.getTarget());
    }
View Full Code Here

Examples of org.apache.wicket.request.IRequestCycleProcessor

   *            The url which describes the component path and the interface to be called.
   */
  private void dispatchEvent(final Page page, final String url)
  {
    RequestCycle rc = RequestCycle.get();
    IRequestCycleProcessor processor = rc.getProcessor();
    final RequestParameters requestParameters = processor.getRequestCodingStrategy().decode(
      new FormDispatchRequest(rc.getRequest(), url));
    IRequestTarget rt = processor.resolve(rc, requestParameters);
    if (rt instanceof IListenerInterfaceRequestTarget)
    {
      IListenerInterfaceRequestTarget interfaceTarget = ((IListenerInterfaceRequestTarget)rt);
      interfaceTarget.getRequestListenerInterface().invoke(page, interfaceTarget.getTarget());
    }
View Full Code Here

Examples of org.apache.wicket.request.IRequestCycleProcessor

        if (!(ex instanceof PageExpiredException))
        {
          logRuntimeException(ex);
        }

        IRequestCycleProcessor processor = getProcessor();
        processor.respond(ex, this);
        return;
      }
    }
    else
    {
View Full Code Here

Examples of org.apache.wicket.request.IRequestCycleProcessor

   *
   * @return the request processor
   */
  private final IRequestCycleProcessor safeGetRequestProcessor()
  {
    IRequestCycleProcessor processor = getProcessor();
    if (processor == null)
    {
      throw new WicketRuntimeException("request cycle processor must be not-null");
    }
    return processor;
View Full Code Here

Examples of org.apache.wicket.request.IRequestCycleProcessor

    {
      return requestParameters;
    }

    // get the request encoder to decode the request parameters
    IRequestCycleProcessor processor = RequestCycle.get().getProcessor();
    final IRequestCodingStrategy encoder = processor.getRequestCodingStrategy();
    if (encoder == null)
    {
      throw new WicketRuntimeException("request encoder must be not-null (provided by " +
        processor + ")");
    }
View Full Code Here

Examples of org.apache.wicket.request.IRequestCycleProcessor

   *            The url which describes the component path and the interface to be called.
   */
  private void dispatchEvent(final Page page, final String url)
  {
    RequestCycle rc = RequestCycle.get();
    IRequestCycleProcessor processor = rc.getProcessor();
    final RequestParameters requestParameters = processor.getRequestCodingStrategy().decode(
      new FormDispatchRequest(rc.getRequest(), url));
    IRequestTarget rt = processor.resolve(rc, requestParameters);
    if (rt instanceof IListenerInterfaceRequestTarget)
    {
      IListenerInterfaceRequestTarget interfaceTarget = ((IListenerInterfaceRequestTarget)rt);
      interfaceTarget.getRequestListenerInterface().invoke(page, interfaceTarget.getTarget());
    }
View Full Code Here

Examples of org.apache.wicket.request.IRequestCycleProcessor

   *            The url which describes the component path and the interface to be called.
   */
  private void dispatchEvent(final Page page, final String url)
  {
    RequestCycle rc = RequestCycle.get();
    IRequestCycleProcessor processor = rc.getProcessor();
    final RequestParameters requestParameters = processor.getRequestCodingStrategy().decode(
      new FormDispatchRequest(rc.getRequest(), url));
    IRequestTarget rt = processor.resolve(rc, requestParameters);
    if (rt instanceof IListenerInterfaceRequestTarget)
    {
      IListenerInterfaceRequestTarget interfaceTarget = ((IListenerInterfaceRequestTarget)rt);
      interfaceTarget.getRequestListenerInterface().invoke(page, interfaceTarget.getTarget());
    }
View Full Code Here

Examples of org.apache.wicket.request.IRequestCycleProcessor

        if (!(ex instanceof PageExpiredException))
        {
          logRuntimeException(ex);
        }

        IRequestCycleProcessor processor = getProcessor();
        processor.respond(ex, this);
        return;
      }
    }
    else
    {
View Full Code Here

Examples of org.apache.wicket.request.IRequestCycleProcessor

  {
    if (pageClassRef != null && pageClassRef.get() != null)
    {
      if (requestCycle.isRedirect())
      {
        IRequestCycleProcessor processor = requestCycle.getProcessor();
        String redirectUrl = processor.getRequestCodingStrategy()
          .encode(requestCycle, this)
          .toString();

        // WICKET-1916 - if we are redirecting to homepage, then redirectUrl equals "./",
        // and if we strip it to blank, no redirect occurs
View Full Code Here

Examples of org.apache.wicket.request.IRequestCycleProcessor

   *
   * @return the request processor
   */
  private final IRequestCycleProcessor safeGetRequestProcessor()
  {
    IRequestCycleProcessor processor = getProcessor();
    if (processor == null)
    {
      throw new WicketRuntimeException("request cycle processor must be not-null");
    }
    return processor;
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.