Package org.apache.tapestry.internal.structure

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


        // 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

                return true;
            }
        };

        element.triggerEvent(actionLinkTarget.getAction(), invocation.getContext(), handler);

        ActionResponseGenerator result = holder.get();

        if (result == null)
        {
View Full Code Here

            }
        };

        ComponentPageElement rootElement = page.getRootElement();

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

        return toContextStrings(context.toArray());
    }

    private String[] toContextStrings(Object[] context)
View Full Code Here

            }
        };

        ComponentPageElement rootElement = page.getRootElement();

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

        return toContextStrings(context.toArray());
    }

    private String[] toContextStrings(Object[] context)
View Full Code Here

        Page containerPage = _cache.get(parameters.getContainingPageName());

        ComponentPageElement element = containerPage.getComponentElementByNestedId(parameters.getNestedComponentId());

        element.triggerEvent(parameters.getEventType(), parameters.getEventContext(), callback);

        if (callback.isAborted()) return;

        JSONObject reply = new JSONObject();
View Full Code Here

            }
        };

        ComponentPageElement rootElement = page.getRootElement();

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

        return toContextStrings(context.toArray());
    }

    private String[] toContextStrings(Object[] context)
View Full Code Here

        Page containerPage = _cache.get(parameters.getContainingPageName());

        ComponentPageElement element = containerPage.getComponentElementByNestedId(parameters.getNestedComponentId());

        element.triggerEvent(parameters.getEventType(), parameters.getEventContext(), callback);

        if (callback.isAborted()) return;

        if (!_response.isCommitted()) _generator.generateResponse(activePage);
    }
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.