Package org.apache.tapestry5.internal

Examples of org.apache.tapestry5.internal.InternalComponentResources


                if (binder != null)
                {
                    final String defaultBindingPrefix = binder.getDefaultBindingPrefix(metaDefaultBindingPrefix);

                    InternalComponentResources containerResources = pageAssembly.activeElement.peek().getComponentResources();

                    ComponentPageElement embeddedElement = pageAssembly.createdElement.peek();
                    InternalComponentResources embeddedResources = embeddedElement.getComponentResources();

                    Binding binding = elementFactory.newBinding(parameterName,
                                                                containerResources,
                                                                embeddedResources,
                                                                defaultBindingPrefix,
View Full Code Here


        context.add(new PageAssemblyAction()
        {
            public void execute(PageAssembly pageAssembly)
            {
                InternalComponentResources resources = pageAssembly.activeElement.peek().getComponentResources();

                RenderCommand command = elementFactory.newAttributeElement(resources, token);

                pageAssembly.addRenderCommand(command);
            }
View Full Code Here

        components.add(resources.getComponent());
    }

    public void bindMixinParameter(String mixinId, String parameterName, Binding binding)
    {
        InternalComponentResources mixinResources = InternalUtils.get(mixinIdToComponentResources, mixinId);

        mixinResources.bindParameter(parameterName, binding);
    }
View Full Code Here

        train_getModel(ins, model);

        replay();

        InternalComponentResources resources = new InternalComponentResourcesImpl(null, element, null, null, null,
                                                                                  null, ins);

        resources.renderInformalParameters(writer);

        verify();
    }
View Full Code Here

        train_getParameterModel(model, "fred", pmodel);

        replay();

        InternalComponentResources resources = new InternalComponentResourcesImpl(null, element, null, null, null,
                                                                                  null, ins);

        resources.bindParameter("fred", binding);

        resources.renderInformalParameters(writer);

        verify();
    }
View Full Code Here

        writer.attributes("fred", convertedValue);

        replay();

        InternalComponentResources resources = new InternalComponentResourcesImpl(null, element, null,
                                                                                  componentPageElementResources,
                                                                                  null, null, ins);

        resources.bindParameter("fred", binding);

        resources.renderInformalParameters(writer);

        verify();
    }
View Full Code Here

        train_isRendering(element, true);
        train_isRendering(element, true);

        replay();

        InternalComponentResources resources = new InternalComponentResourcesImpl(null, element, null, null, "Foo.bar",
                                                                                  null, ins);

        resources.storeRenderVariable("fred", "FRED");
        resources.storeRenderVariable("barney", "BARNEY");

        resources.postRenderCleanup();

        try
        {
            resources.getRenderVariable("fred");
            unreachable();
        }
        catch (IllegalArgumentException ex)
        {
            assertEquals(ex.getMessage(),
View Full Code Here

        train_isRendering(element, false);

        replay();

        InternalComponentResources resources = new InternalComponentResourcesImpl(null, element, null, null, "Foo.bar",
                                                                                  null, ins);


        try
        {
            resources.storeRenderVariable("fred", "FRED");
            unreachable();
        }
        catch (IllegalStateException ex)
        {
            assertEquals(ex.getMessage(),
View Full Code Here

        page.addLifecycleListener(listener);

        replay();

        InternalComponentResources resources = new InternalComponentResourcesImpl(page, element, null, null, null,
                                                                                  null, ins);

        resources.addPageLifecycleListener(listener);

        verify();
    }
View Full Code Here

        }
    }

    public void bindMixinParameter(String mixinId, String parameterName, Binding binding)
    {
        InternalComponentResources mixinResources = NamedSet.get(mixinIdToComponentResources, mixinId);

        mixinResources.bindParameter(parameterName, binding);
    }
View Full Code Here

TOP

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

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.