Package org.apache.tiles.jsp.taglib

Examples of org.apache.tiles.jsp.taglib.TilesJspException


        definition.setPreparer(preparer);

        TilesContainer c = JspUtil.getCurrentContainer(pageContext);

        if (c == null) {
            throw new TilesJspException("TilesContainer not initialized");
        }
        if (!(c instanceof MutableTilesContainer)) {
            throw new TilesJspException(
                    "Unable to define definition for a "
                            + "container which does not implement MutableTilesContainer");
        }

        container = (MutableTilesContainer) c;
View Full Code Here


            DefinitionTagParent parent =
                    (DefinitionTagParent) findAncestorWithClass(this,
                            DefinitionTagParent.class);

            if (parent == null && name == null) {
                throw new TilesJspException(
                        "Error - tag definition : enclosing tag doesn't accept 'definition'"
                                + " tag and a name was not specified.");
            }

            return parent;

        } catch (ClassCastException ex) { // Is it possibile?
            throw new TilesJspException(
                    "Error - tag definition : enclosing tag doesn't accept 'definition' tag.", ex);
        }
    }
View Full Code Here

        definition.setPreparer(preparer);

        TilesContainer c = JspUtil.getCurrentContainer(pageContext);

        if (c == null) {
            throw new TilesJspException("TilesContainer not initialized");
        }
        if (!(c instanceof MutableTilesContainer)) {
            throw new TilesJspException(
                    "Unable to define definition for a "
                            + "container which does not implement MutableTilesContainer");
        }

        container = (MutableTilesContainer) c;
View Full Code Here

            DefinitionTagParent parent =
                    (DefinitionTagParent) findAncestorWithClass(this,
                            DefinitionTagParent.class);

            if (parent == null && name == null) {
                throw new TilesJspException(
                        "Error - tag definition : enclosing tag doesn't accept 'definition'"
                                + " tag and a name was not specified.");
            }

            return parent;

        } catch (ClassCastException ex) { // Is it possibile?
            throw new TilesJspException(
                    "Error - tag definition : enclosing tag doesn't accept 'definition' tag.", ex);
        }
    }
View Full Code Here

        definition.setPreparer(preparer);

        TilesContainer c = JspUtil.getCurrentContainer(pageContext);

        if (c == null) {
            throw new TilesJspException("TilesContainer not initialized");
        }
        if (!(c instanceof MutableTilesContainer)) {
            throw new TilesJspException(
                    "Unable to define definition for a "
                            + "container which does not implement MutableTilesContainer");
        }

        container = (MutableTilesContainer) c;
View Full Code Here

            DefinitionTagParent parent =
                    (DefinitionTagParent) findAncestorWithClass(this,
                            DefinitionTagParent.class);

            if (parent == null && name == null) {
                throw new TilesJspException(
                        "Error - tag definition : enclosing tag doesn't accept 'definition'"
                                + " tag and a name was not specified.");
            }

            return parent;

        } catch (ClassCastException ex) { // Is it possibile?
            throw new TilesJspException(
                    "Error - tag definition : enclosing tag doesn't accept 'definition' tag.", ex);
        }
    }
View Full Code Here

        }

        Integer scope = JspUtil.SCOPES.get(scopeName.toLowerCase());

        if (scope == null) {
            throw new TilesJspException("Unable to retrieve the scope "
                    + scopeName);
        }

        return scope;
    }
View Full Code Here

        TilesContainer container = JspUtil.getCurrentContainer(jspContext);
        if (container instanceof MutableTilesContainer) {
            model.end((MutableTilesContainer) container, JspUtil
                    .getComposeStack(jspContext), jspContext);
        } else {
            throw new TilesJspException("The current container is not mutable");
        }
    }
View Full Code Here

        definition.setPreparer(preparer);

        TilesContainer c = JspUtil.getCurrentContainer(pageContext);

        if (c == null) {
            throw new TilesJspException("TilesContainer not initialized");
        }
        if (!(c instanceof MutableTilesContainer)) {
            throw new TilesJspException(
                    "Unable to define definition for a "
                            + "container which does not implement MutableTilesContainer");
        }

        container = (MutableTilesContainer) c;
View Full Code Here

            DefinitionTagParent parent =
                    (DefinitionTagParent) findAncestorWithClass(this,
                            DefinitionTagParent.class);

            if (parent == null && name == null) {
                throw new TilesJspException(
                        "Error - tag definition : enclosing tag doesn't accept 'definition'"
                                + " tag and a name was not specified.");
            }

            return parent;

        } catch (ClassCastException ex) { // Is it possibile?
            throw new TilesJspException(
                    "Error - tag definition : enclosing tag doesn't accept 'definition' tag.", ex);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.tiles.jsp.taglib.TilesJspException

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.