Examples of triggerEvent()


Examples of org.apache.tapestry.internal.structure.ComponentPageElement.triggerEvent()

            }
        };

        ComponentPageElement rootElement = page.getRootElement();

        rootElement.triggerEvent(TapestryConstants.PASSIVATE_EVENT, null, handler);

        PageLinkTarget target = new PageLinkTarget(logicalPageName);
        ComponentInvocation invocation = new ComponentInvocation(target, context.toArray());

        Link link = new LinkImpl(_encoder, _contextPathSource.getContextPath(), invocation, false);
View Full Code Here

Examples of org.apache.tapestry.internal.structure.ComponentPageElement.triggerEvent()

        // Intercept the call to handle component event, and let the IAnswer
        // do the work.

        expect(
                rootElement.triggerEvent(
                        EasyMock.eq(TapestryConstants.PASSIVATE_EVENT),
                        (Object[]) EasyMock.isNull(),
                        EasyMock.isA(ComponentEventHandler.class))).andAnswer(triggerEventAnswer);

        train_encodeRedirectURL(
View Full Code Here

Examples of org.apache.tapestry.internal.structure.ComponentPageElement.triggerEvent()

        // Intercept the call to handle component event, and let the IAnswer
        // do the work.

        expect(
                rootElement.triggerEvent(
                        EasyMock.eq(TapestryConstants.PASSIVATE_EVENT),
                        (Object[]) EasyMock.isNull(),
                        EasyMock.isA(ComponentEventHandler.class))).andAnswer(triggerEventAnswer);

        train_encodeRedirectURL(
View Full Code Here

Examples of org.apache.tapestry5.ComponentResources.triggerEvent()

        submit.processSubmission("xyz", elementName);

        verify();

        expect(resources.triggerEvent(EventConstants.SELECTED, null, null)).andReturn(false);

        replay();

        support.executeDeferred();
View Full Code Here

Examples of org.apache.tapestry5.ComponentResources.triggerEvent()

        submit.processSubmission("xyz", elementName);

        verify();

        expect(resources.triggerEvent(EventConstants.SELECTED, null, null)).andReturn(false);

        replay();

        heartbeat.end();
View Full Code Here

Examples of org.apache.tapestry5.ComponentResources.triggerEvent()

        ComponentResources activePageResources = activePage.getComponentResources();

        try
        {

            activePageResources.triggerEvent(EventConstants.PREALLOCATE_FORM_CONTROL_NAMES, new Object[]
            { idAllocator }, null);
        }
        catch (RuntimeException ex)
        {
            logger.error(
View Full Code Here

Examples of org.apache.tapestry5.ComponentResources.triggerEvent()

                return handler.handleResult(context[0].toString().toUpperCase());
            }
        };

        EasyMock.expect(resources.triggerEvent(EasyMock.eq(EventConstants.PARSE_CLIENT),
                                               EasyMock.isA(Object[].class),
                                               EasyMock.isA(ComponentEventCallback.class))).andAnswer(answer);


        replay();
View Full Code Here

Examples of org.apache.tapestry5.ComponentResources.triggerEvent()

        ValidationException ve = new ValidationException("Just didn't feel right.");
        NullFieldStrategy nullFieldStrategy = mockNullFieldStrategy();

        String clientValue = "abracadabra";

        EasyMock.expect(resources.triggerEvent(EasyMock.eq(EventConstants.PARSE_CLIENT),
                                               EasyMock.isA(Object[].class),
                                               EasyMock.isA(ComponentEventCallback.class))).andThrow(
                new RuntimeException(ve));

View Full Code Here

Examples of org.apache.tapestry5.ComponentResources.triggerEvent()

        NullFieldStrategy nullFieldStrategy = mockNullFieldStrategy();

        String clientValue = "abracadabra";


        EasyMock.expect(resources.triggerEvent(EasyMock.eq(EventConstants.PARSE_CLIENT),
                                               EasyMock.isA(Object[].class),
                                               EasyMock.isA(ComponentEventCallback.class))).andThrow(re);


        replay();
View Full Code Here

Examples of org.apache.tapestry5.ComponentResources.triggerEvent()

        expect(translator.getType()).andReturn(Integer.class);

        String clientValue = "abracadabra";

        EasyMock.expect(resources.triggerEvent(EasyMock.eq(EventConstants.TO_CLIENT),
                                               EasyMock.aryEq(new Object[] {value}),
                                               EasyMock.isA(ComponentEventCallback.class))).andReturn(false);

        expect(translator.toClient(value)).andReturn(clientValue);
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.