Examples of FormSupportImpl


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

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

        String elementName = "myname";

        // Also: test for the alternate, JavaScript oriented way, of determining the
        // element/component that triggered the submission.
        train_getParameter(request, Form.SUBMITTING_ELEMENT_ID, "xyz");

        replay();

        Submit submit = new Submit(request);

        TestBase.set(submit, "resources", resources, "formSupport", support);

        submit.processSubmission("xyz", elementName);

        verify();

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

        replay();

        support.executeDeferred();

        verify();
    }
View Full Code Here

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

     */
    @OnEvent("internalCreateRenderTimeFormSupport")
    InternalFormSupport createRenderTimeFormSupport(String clientId, ComponentActionSink actionSink,
            IdAllocator allocator)
    {
        return new FormSupportImpl(resources, clientId, actionSink, clientBehaviorSupport,
                clientValidation != ClientValidation.NONE, allocator, validationId);
    }
View Full Code Here

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

    {
        activeTracker = getWrappedTracker();

        activeTracker.clear();

        formSupport = new FormSupportImpl(resources, validationId);

        environment.push(ValidationTracker.class, activeTracker);
        environment.push(FormSupport.class, formSupport);
        environment.push(BeanValidationContext.class, new BeanValidationContextImpl(validate));
View Full Code Here

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

     * @param allocator  used to allocate unique ids
     * @return form support object
     */
    InternalFormSupport createRenderTimeFormSupport(String name, ComponentActionSink actionSink, IdAllocator allocator)
    {
        return new FormSupportImpl(resources, name, actionSink, clientBehaviorSupport,
                                   clientValidation, allocator, validationId);
    }
View Full Code Here

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

    @Log
    Object onAction(EventContext context) throws IOException
    {
        tracker.clear();

        formSupport = new FormSupportImpl(resources, validationId);

        environment.push(ValidationTracker.class, tracker);
        environment.push(FormSupport.class, formSupport);

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

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

     * @param allocator  used to allocate unique ids
     * @return form support object
     */
    InternalFormSupport createRenderTimeFormSupport(String name, ComponentActionSink actionSink, IdAllocator allocator)
    {
        return new FormSupportImpl(resources, name, actionSink, clientBehaviorSupport,
                                   clientValidation, allocator, validationId);
    }
View Full Code Here

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

    @Log
    Object onAction(EventContext context) throws IOException
    {
        tracker.clear();

        formSupport = new FormSupportImpl(resources, validationId);

        environment.push(ValidationTracker.class, tracker);
        environment.push(FormSupport.class, formSupport);

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

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

     */
    @OnEvent("internalCreateRenderTimeFormSupport")
    InternalFormSupport createRenderTimeFormSupport(String clientId, ComponentActionSink actionSink,
                                                    IdAllocator allocator)
    {
        return new FormSupportImpl(resources, clientId, actionSink,
                clientValidation != ClientValidation.NONE, allocator, validationId);
    }
View Full Code Here

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

    {
        beforeProcessSubmit(context);

        tracker.clear();

        formSupport = new FormSupportImpl(resources, validationId);

        environment.push(ValidationTracker.class, tracker);
        environment.push(FormSupport.class, formSupport);

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

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

     */
    @OnEvent("internalCreateRenderTimeFormSupport")
    InternalFormSupport createRenderTimeFormSupport(String clientId, ComponentActionSink actionSink,
                                                    IdAllocator allocator)
    {
        return new FormSupportImpl(resources, clientId, actionSink,
                clientValidation != ClientValidation.NONE, allocator, validationId);
    }
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.