Examples of StaleLinkException


Examples of org.apache.tapestry.StaleLinkException

            form.rewind(NullWriter.getSharedInstance(), this);

            // Shouldn't get this far, because the form should
            // throw the RenderRewoundException.

            throw new StaleLinkException(Tapestry.format("RequestCycle.form-rewind-failure", form
                    .getExtendedId()), form);
        }
        catch (RenderRewoundException ex)
        {
            // This is acceptible and expected.
View Full Code Here

Examples of org.apache.tapestry.StaleLinkException

            _page.renderPage(NullWriter.getSharedInstance(), this);

            // Shouldn't get this far, because the target component should
            // throw the RenderRewoundException.

            throw new StaleLinkException(_page, targetActionId, targetComponent.getExtendedId());
        }
        catch (RenderRewoundException ex)
        {
            // This is acceptible and expected.
        }
View Full Code Here

Examples of org.apache.tapestry.StaleLinkException

        __CLOVER_130_0.S[3048]++;if ((((_rewinding) && (++__CLOVER_130_0.CT[553] != 0)) || (++__CLOVER_130_0.CF[553] == 0))){
        {
            __CLOVER_130_0.S[3049]++;if ((((_allocatedIdIndex >= _allocatedIds.size()) && (++__CLOVER_130_0.CT[554] != 0)) || (++__CLOVER_130_0.CF[554] == 0))){
            {
                __CLOVER_130_0.S[3050]++;throw new StaleLinkException(
                    Tapestry.format(
                        "Form.too-many-ids",
                        getExtendedId(),
                        Integer.toString(_allocatedIds.size()),
                        component.getExtendedId()),
                    this);
            }}

            __CLOVER_130_0.S[3051]++;String expected = (String) _allocatedIds.get(_allocatedIdIndex);

            __CLOVER_130_0.S[3052]++;if ((((!result.equals(expected)) && (++__CLOVER_130_0.CT[555] != 0)) || (++__CLOVER_130_0.CF[555] == 0))){
                __CLOVER_130_0.S[3053]++;throw new StaleLinkException(
                    Tapestry.format(
                        "Form.id-mismatch",
                        new Object[] {
                            getExtendedId(),
                            Integer.toString(_allocatedIdIndex + 1),
View Full Code Here

Examples of org.apache.tapestry.StaleLinkException

            __CLOVER_130_0.S[3109]++;if ((((_allocatedIdIndex < expected) && (++__CLOVER_130_0.CT[565] != 0)) || (++__CLOVER_130_0.CF[565] == 0))){
            {
                __CLOVER_130_0.S[3110]++;String nextExpectedId = (String) _allocatedIds.get(_allocatedIdIndex);

                __CLOVER_130_0.S[3111]++;throw new StaleLinkException(
                    Tapestry.format(
                        "Form.too-few-ids",
                        getExtendedId(),
                        Integer.toString(expected - _allocatedIdIndex),
                        nextExpectedId),
View Full Code Here

Examples of org.apache.tapestry.StaleLinkException

        __CLOVER_102_0.S[2356]++;if ((((component == _targetComponent) && (++__CLOVER_102_0.CT[441] != 0)) || (++__CLOVER_102_0.CF[441] == 0))){
            __CLOVER_102_0.S[2357]++;return true;}

        // Woops.  Mismatch.

        __CLOVER_102_0.S[2358]++;throw new StaleLinkException(
            component,
            Integer.toHexString(_targetActionId),
            _targetComponent.getExtendedId());
    } finally { }}
View Full Code Here

Examples of org.apache.tapestry.StaleLinkException

            __CLOVER_102_0.S[2389]++;form.rewind(NullWriter.getSharedInstance(), this);

            // Shouldn't get this far, because the form should
            // throw the RenderRewoundException.

            __CLOVER_102_0.S[2390]++;throw new StaleLinkException(
                Tapestry.format("RequestCycle.form-rewind-failure", form.getExtendedId()),
                form);
        }
        catch (RenderRewoundException ex)
        {
View Full Code Here

Examples of org.apache.tapestry.StaleLinkException

            __CLOVER_102_0.S[2408]++;_page.renderPage(NullWriter.getSharedInstance(), this);

            // Shouldn't get this far, because the target component should
            // throw the RenderRewoundException.

            __CLOVER_102_0.S[2409]++;throw new StaleLinkException(_page, targetActionId, targetComponent.getExtendedId());
        }
        catch (RenderRewoundException ex)
        {
            // This is acceptible and expected.
        }
View Full Code Here

Examples of org.apache.tapestry.StaleLinkException

        if (_rewinding)
        {
            if (_allocatedIdIndex >= _allocatedIds.size())
            {
                throw new StaleLinkException(FormMessages.formTooManyIds(_form, _allocatedIds
                        .size(), component), component);
            }

            String expected = (String) _allocatedIds.get(_allocatedIdIndex);

            if (!result.equals(expected))
                throw new StaleLinkException(FormMessages.formIdMismatch(
                        _form,
                        _allocatedIdIndex,
                        expected,
                        result,
                        component), component);
View Full Code Here

Examples of org.apache.tapestry.StaleLinkException

        if (_allocatedIdIndex < expected)
        {
            String nextExpectedId = (String) _allocatedIds.get(_allocatedIdIndex);

            throw new StaleLinkException(FormMessages.formTooFewIds(_form, expected
                    - _allocatedIdIndex, nextExpectedId), _form);
        }

        runDeferredRunnables();
View Full Code Here

Examples of org.apache.tapestry.StaleLinkException

        if (component == _targetComponent)
            return true;

        // Woops. Mismatch.

        throw new StaleLinkException(component, Integer.toHexString(_targetActionId),
                _targetComponent.getExtendedId());
    }
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.