Package org.apache.tapestry.corelib.internal

Examples of org.apache.tapestry.corelib.internal.FormSupportImpl


    @Test
    public void trigger_deferred()
    {
        Request request = mockRequest();
        ComponentResources resources = mockComponentResources();
        FormSupportImpl support = new FormSupportImpl();

        String elementName = "myname";

        train_getParameter(request, elementName, "login");

        replay();

        Submit submit = new Submit(request);

        submit.setup(resources, support, null);

        submit.processSubmission(support, elementName);

        verify();

        expect(resources.triggerEvent(Submit.SELECTED_EVENT, null, null)).andReturn(false);

        replay();

        support.executeDeferred();

        verify();
    }
View Full Code Here


            throw new RuntimeException(ex);
        }

        _name = _pageRenderSupport.allocateClientId(_resources.getId());

        _formSupport = new FormSupportImpl(_name, _actions);

        // TODO: Forms should not allow to nest. Perhaps a set() method instead of a push() method
        // for this kind of check? 

        _environment.push(FormSupport.class, _formSupport);
View Full Code Here

    @SuppressWarnings({"unchecked", "InfiniteLoopStatement"})
    Object onAction(Object[] context) throws IOException
    {
        _tracker.clear();

        _formSupport = new FormSupportImpl();

        _environment.push(ValidationTracker.class, _tracker);
        _environment.push(FormSupport.class, _formSupport);

        Heartbeat heartbeat = new HeartbeatImpl();
View Full Code Here

    @Test
    public void trigger_deferred()
    {
        Request request = mockRequest();
        ComponentResources resources = mockComponentResources();
        FormSupportImpl support = new FormSupportImpl();

        String elementName = "myname";

        train_getParameter(request, elementName, "login");

        replay();

        Submit submit = new Submit(request);

        submit.setup(resources, support, null);

        submit.processSubmission(elementName);

        verify();

        expect(resources.triggerEvent(Submit.SELECTED_EVENT, null, null)).andReturn(false);

        replay();

        support.executeDeferred();

        verify();
    }
View Full Code Here

            throw new RuntimeException(ex);
        }

        _name = _pageRenderSupport.allocateClientId(_resources.getId());

        _formSupport = new FormSupportImpl(_name, _actions);

        // TODO: Forms should not allow to nest. Perhaps a set() method instead of a push() method
        // for this kind of check?

        _environment.push(FormSupport.class, _formSupport);
View Full Code Here

    @SuppressWarnings("unchecked")
    Object onAction(Object[] context)
    {
        _tracker.clear();

        _formSupport = new FormSupportImpl();

        _environment.push(ValidationTracker.class, _tracker);
        _environment.push(FormSupport.class, _formSupport);

        Heartbeat heartbeat = new HeartbeatImpl();
View Full Code Here

            throw new RuntimeException(ex);
        }

        _name = _pageRenderSupport.allocateClientId(_resources.getId());

        _formSupport = new FormSupportImpl(_name, _actions);

        // TODO: Forms should not allow to nest. Perhaps a set() method instead of a push() method
        // for this kind of check? 

        _environment.push(FormSupport.class, _formSupport);
View Full Code Here

    @SuppressWarnings({"unchecked", "InfiniteLoopStatement"})
    Object onAction(Object[] context)
    {
        _tracker.clear();

        _formSupport = new FormSupportImpl();

        _environment.push(ValidationTracker.class, _tracker);
        _environment.push(FormSupport.class, _formSupport);

        Heartbeat heartbeat = new HeartbeatImpl();
View Full Code Here

            throw new RuntimeException(ex);
        }

        _name = _pageRenderSupport.allocateClientId(_resources);

        _formSupport = new FormSupportImpl(_name, _actions, _clientBehaviorSupport, _clientValidation);

        if (_zone != null) _clientBehaviorSupport.linkZone(_name, _zone);

        // TODO: Forms should not allow to nest. Perhaps a set() method instead of a push() method
        // for this kind of check? 
View Full Code Here

    @SuppressWarnings({ "unchecked", "InfiniteLoopStatement" })
    Object onAction(EventContext context) throws IOException
    {
        _tracker.clear();

        _formSupport = new FormSupportImpl();

        _environment.push(ValidationTracker.class, _tracker);
        _environment.push(FormSupport.class, _formSupport);

        Heartbeat heartbeat = new HeartbeatImpl();
View Full Code Here

TOP

Related Classes of org.apache.tapestry.corelib.internal.FormSupportImpl

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.