Examples of NoSuchDefinitionException


Examples of org.apache.tiles.definition.NoSuchDefinitionException

                + "' can't find its ancestor '"
                + definition.getExtends()
                + "'. Please check your description file.";
            log.error(msg);
            // to do : find better exception
            throw new NoSuchDefinitionException(msg);
        }

        // Resolve parent before itself.
        resolveInheritance(parent, request);
        definition.inherit(parent);
View Full Code Here

Examples of org.apache.tiles.definition.NoSuchDefinitionException

                + definition.getName()
                + "' can't find its ancestor '"
                + definition.getExtends()
                + "'. Please check your description file.";
            // to do : find better exception
            throw new NoSuchDefinitionException(msg);
        }

        resolveInheritance(parent, definitions, locale,
                alreadyResolvedDefinitions);
View Full Code Here

Examples of org.apache.tiles.definition.NoSuchDefinitionException

                + "' can't find its ancestor '"
                + definition.getExtends()
                + "'. Please check your description file.";
            LOG.error(msg);
            // to do : find better exception
            throw new NoSuchDefinitionException(msg);
        }

        // Resolve parent before itself.
        resolveInheritance(parent, request);
        definition.inherit(parent);
View Full Code Here

Examples of org.apache.tiles.definition.NoSuchDefinitionException

        if (definition == null) {
            if (LOG.isWarnEnabled()) {
                String message = "Unable to find the definition '" + definitionName + "'";
                LOG.warn(message);
            }
            throw new NoSuchDefinitionException(definitionName);
        }

        AttributeContext originalContext = getAttributeContext(request);
        BasicAttributeContext subContext = new BasicAttributeContext(originalContext);
        subContext.inherit(definition);
View Full Code Here

Examples of org.apache.tiles.definition.NoSuchDefinitionException

        if (definition == null) {
            if (log.isWarnEnabled()) {
                String message = "Unable to find the definition '" + definitionName + "'";
                log.warn(message);
            }
            throw new NoSuchDefinitionException(definitionName);
        }

        AttributeContext originalContext = getAttributeContext(request);
        BasicAttributeContext subContext = new BasicAttributeContext(originalContext);
        subContext.inherit(definition);
View Full Code Here

Examples of org.apache.tiles.definition.NoSuchDefinitionException

                + definition.getName()
                + "' can't find its ancestor '"
                + definition.getExtends()
                + "'. Please check your description file.";
            // to do : find better exception
            throw new NoSuchDefinitionException(msg);
        }

        resolveInheritance(parent, definitions, locale,
                alreadyResolvedDefinitions);
View Full Code Here

Examples of org.apache.tiles.definition.NoSuchDefinitionException

                + "' can't find its ancestor '"
                + definition.getExtends()
                + "'. Please check your description file.";
            log.error(msg);
            // to do : find better exception
            throw new NoSuchDefinitionException(msg);
        }

        // Resolve parent before itself.
        resolveInheritance(parent, request);
        definition.inherit(parent);
View Full Code Here

Examples of org.apache.tiles.definition.NoSuchDefinitionException

                + definition.getName()
                + "' can't find its ancestor '"
                + definition.getExtends()
                + "'. Please check your description file.";
            // to do : find better exception
            throw new NoSuchDefinitionException(msg);
        }

        resolveInheritance(parent, definitions, locale,
                alreadyResolvedDefinitions);
View Full Code Here

Examples of org.apache.tiles.definition.NoSuchDefinitionException

    /** {@inheritDoc} */
    @Override
    public void render(String definition, Request request) {
        Definition toRender = getDefinition(definition, request);
        if (toRender == null) {
            throw new NoSuchDefinitionException(
                    "Cannot find definition named '" + definition + "'");
        }
        super.render(toRender, request);
    }
View Full Code Here

Examples of org.apache.tiles.definition.NoSuchDefinitionException

            parent = container.getDefinition(parentDefinitionName, request);
            recurse = false;
        }

        if (parent == null) {
            throw new NoSuchDefinitionException(
                    "Error while resolving definition inheritance: child '"
                            + definition.getName()
                            + "' can't find its ancestor '"
                            + parentDefinitionName
                            + "'. Please check your description file.");
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.