Example usage for org.springframework.web.util TagUtils assertHasAncestorOfType

List of usage examples for org.springframework.web.util TagUtils assertHasAncestorOfType

Introduction

In this page you can find the example usage for org.springframework.web.util TagUtils assertHasAncestorOfType.

Prototype

public static void assertHasAncestorOfType(Tag tag, Class<?> ancestorTagClass, String tagName,
        String ancestorTagName) 

Source Link

Document

Determine whether the supplied Tag has any ancestor tag of the supplied type, throwing an IllegalStateException if not.

Usage

From source file:org.hdiv.web.servlet.tags.form.OptionsTagHDIV.java

private void assertUnderSelectTag() {
    TagUtils.assertHasAncestorOfType(this, SelectTagHDIV.class, "options", "select");
}

From source file:org.hdiv.web.servlet.tags.form.OptionTagHDIV.java

private void assertUnderSelectTag() {
    TagUtils.assertHasAncestorOfType(this, SelectTagHDIV.class, "option", "select");
}