Package org.apache.tapestry.internal.services

Examples of org.apache.tapestry.internal.services.ComponentInvocation


     * @return The DOM created. Typically you will assert against it.
     */
    public Document clickLink(Element link)
    {
        Defense.notNull(link, "link");
        ComponentInvocation invocation = getInvocation(link);
        return invoke(invocation);
    }
View Full Code Here


        return invoke(invocation);
    }

    private ComponentInvocation getInvocation(Element element)
    {
        ComponentInvocation invocation = _invocationMap.get(element);
        if (invocation == null) { throw new IllegalArgumentException(
                "No component invocation object is associated with the Element"); }
        return invocation;
    }
View Full Code Here

    {
        Defense.notNull(form, "form");
        _formParameterLookup.clear();
        _formParameterLookup.addFieldValues(fieldValues);
        addHiddenFormFields(form);
        ComponentInvocation invocation = getInvocation(form);
        return invoke(invocation);
    }
View Full Code Here

        {
            LinkActionResponseGenerator linkGenerator = (LinkActionResponseGenerator) generator;

            Link link = linkGenerator.getLink();

            ComponentInvocation followup = _componentInvocationMap.get(link);

            return _followupInvoker.invoke(followup);
        }

        String message = String
View Full Code Here

        _response.clear();

        if (link == null) throw new RuntimeException("Action did not set a redirect link.");


        ComponentInvocation followup = _componentInvocationMap.get(link);

        return _followupInvoker.invoke(followup);
    }
View Full Code Here

    {
        Link link = mockLink();
        ComponentResources resources = mockComponentResources();
        ComponentInvocationMap map = new PageTesterComponentInvocationMap();
        MarkupWriter writer = new MarkupWriterImpl();
        ComponentInvocation invocation = mockComponentInvocation();

        map.store(link, invocation);

        train_toURI(link, LINK_URI);
View Full Code Here

    {
        Link link = mockLink();
        ComponentResources resources = mockComponentResources();
        ComponentInvocationMap map = new PageTesterComponentInvocationMap();
        MarkupWriter writer = new MarkupWriterImpl();
        ComponentInvocation invocation = mockComponentInvocation();

        map.store(link, invocation);

        train_toURI(link, LINK_URI);
View Full Code Here

        {
            LinkActionResponseGenerator linkGenerator = (LinkActionResponseGenerator) generator;

            Link link = linkGenerator.getLink();

            ComponentInvocation followup = _componentInvocationMap.get(link);

            return _followupInvoker.invoke(followup);
        }

        String message = String
View Full Code Here

     *            The name of the page to be rendered.
     * @return The DOM created. Typically you will assert against it.
     */
    public Document renderPage(String pageName)
    {
        return invoke(new ComponentInvocation(new PageLinkTarget(pageName), new String[0], null));
    }
View Full Code Here

     */
    public Document clickLink(Element link)
    {
        notNull(link, "link");

        ComponentInvocation invocation = getInvocation(link);

        return invoke(invocation);
    }
View Full Code Here

TOP

Related Classes of org.apache.tapestry.internal.services.ComponentInvocation

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.