Package org.apache.tapestry.corelib.internal

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


            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

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.