Package org.apache.tapestry5.internal

Examples of org.apache.tapestry5.internal.EmptyEventContext


        Response response = mockResponse();
        ComponentClassResolver resolver = mockComponentClassResolver();
        LocalizationSetter ls = mockLocalizationSetter();

        ComponentEventRequestParameters expectedParameters = new ComponentEventRequestParameters(
                "activepage", "mypage", "", "eventname", new EmptyEventContext(),
                new EmptyEventContext());

        train_getPath(request, "/activepage:eventname");

        train_setLocaleFromLocaleName(ls, "", false);
View Full Code Here


        ComponentClassResolver resolver = mockComponentClassResolver();
        LocalizationSetter localizationSetter = mockLocalizationSetter();

        ComponentEventRequestParameters expectedParameters = new ComponentEventRequestParameters(
                containerPageName, containerPageName, nestedComponentId, eventType,
                new EmptyEventContext(), new URLEventContext(contextValueEncoder, eventContext));

        train_getPath(request, requestPath);

        train_setLocaleFromLocaleName(localizationSetter, localeName, false);
View Full Code Here

        replay();

        ComponentEventLinkEncoder encoder = new ComponentEventLinkEncoderImpl(null, contextPathEncoder, null, request,
                response, manager, null, false);

        PageRenderRequestParameters parameters = new PageRenderRequestParameters("MyPage", new EmptyEventContext());

        Link link = encoder.createPageRenderLink(parameters);

        assertEquals(link.toAbsoluteURI(), "MAGIC");
View Full Code Here

        replay();

        ComponentEventLinkEncoder encoder = new ComponentEventLinkEncoderImpl(null, contextPathEncoder, null, request,
                response, manager, null, false);

        PageRenderRequestParameters parameters = new PageRenderRequestParameters("Index", new EmptyEventContext());

        Link link = encoder.createPageRenderLink(parameters);

        assertEquals(link.toAbsoluteURI(), "MAGIC");
View Full Code Here

        ComponentEventLinkEncoder encoder = new ComponentEventLinkEncoderImpl(null, contextPathEncoder, null, request,
                                                                              response,
                                                                              manager, optimizer, null, null, null,
                                                                              false);

        PageRenderRequestParameters parameters = new PageRenderRequestParameters("MyPage", new EmptyEventContext());

        Link link = encoder.createPageRenderLink(parameters);

        assertEquals(link.toAbsoluteURI(), "MAGIC");
View Full Code Here

                                                                                                 new URLEventContext(
                                                                                                         contextValueEncoder,
                                                                                                         new String[] {
                                                                                                                 "alpha",
                                                                                                                 "beta"}),
                                                                                                 new EmptyEventContext());

        train_getPath(request, "/mypage:eventname");

        train_isPageName(resolver, "mypage", true);
View Full Code Here

        Response response = mockResponse();
        ComponentClassResolver resolver = mockComponentClassResolver();

        ComponentEventRequestParameters expectedParameters = new ComponentEventRequestParameters("activepage", "mypage",
                                                                                                 "", "eventname",
                                                                                                 new EmptyEventContext(),
                                                                                                 new EmptyEventContext());

        train_getPath(request, "/activepage:eventname");

        train_isPageName(resolver, "activepage", true);
View Full Code Here

        ComponentEventRequestParameters expectedParameters = new ComponentEventRequestParameters(containerPageName,
                                                                                                 containerPageName,
                                                                                                 nestedComponentId,
                                                                                                 eventType,
                                                                                                 new EmptyEventContext(),
                                                                                                 new URLEventContext(
                                                                                                         contextValueEncoder,
                                                                                                         eventContext));

        train_getPath(request, requestPath);
View Full Code Here

      }
    }

    if (redirectPage != null) {
      pageRenderRequestHandler.handle(new PageRenderRequestParameters(
          redirectPage, new EmptyEventContext(), false));
    } else {
      handler.handle(handlerParameters);
    }
  }
View Full Code Here

        String redirectPage = AuthenticationValidator.checkForPage(parameters
                .getLogicalPageName(), applicationStateManager,
                componentSource, locator);
        if (redirectPage != null) {
            handlerParameters = new PageRenderRequestParameters(redirectPage,
                    new EmptyEventContext(), false);
        }

        handler.handle(handlerParameters);

    }
View Full Code Here

TOP

Related Classes of org.apache.tapestry5.internal.EmptyEventContext

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.