Examples of FormSupportImpl


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

                    throw new RuntimeException(ex);
                }

                _environment.pop(ValidationTracker.class);

                FormSupportImpl formSupport = (FormSupportImpl) _environment.pop(FormSupport.class);

                formSupport.executeDeferred();

                writer.element("input",

                               "type", "hidden",

                               "name", Form.FORM_DATA,

                               "value", actions.toBase64());
            }
        };

        final RenderCommand setup = new RenderCommand()
        {
            public void render(MarkupWriter writer, RenderQueue queue)
            {
                // Kind of ugly, but the only way to ensure we don't have name collisions on the
                // client side is to force a unique id into each name (as well as each id, but that's
                // PageRenderSupport's job).  It would be nice if we could agree on the uid, but
                // not essential.

                String uid = Long.toHexString(System.currentTimeMillis());

                IdAllocator idAllocator = new IdAllocator(":" + uid);

                FormSupportImpl formSupport = new FormSupportImpl(formId, actions, _clientBehaviorSupport, true,
                                                                  idAllocator);
                _environment.push(FormSupport.class, formSupport);


                _environment.push(ValidationTracker.class, new ValidationTrackerImpl());
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, 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

        actionSink = new ComponentActionSink(logger);

        name = renderSupport.allocateClientId(resources);

        formSupport = new FormSupportImpl(name, actionSink, 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

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

    @Log
    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

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

                clientId = renderSupport.allocateClientId(resources);

                reply.put("elementId", clientId);

                FormSupportImpl formSupport = new FormSupportImpl(formId, actionSink, clientBehaviorSupport, true,
                                                                  idAllocator);

                environment.push(FormSupport.class, formSupport);
                environment.push(ValidationTracker.class, new ValidationTrackerImpl());

                renderer.renderMarkup(writer, reply);

                formSupport.executeDeferred();

                environment.pop(ValidationTracker.class);
                environment.pop(FormSupport.class);

                hiddenFieldPositioner.getElement().attributes(
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);

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