Interface DynamicTag

  • All Superinterfaces:
    All Known Implementing Classes:
    HtmlNativeComponent, Raw, XmlNativeComponent

    public interface DynamicTag
    extends DynamicPropertied
    Represents a component is used to represent a broad range of tags.

    For example, org.zkoss.zhtml.Raw is used to generate any HTML tags that doesn't have the ZK counterpart. Reason: there are too many HTML extended tags available and developers might choose to use them.

    How to use:

    1. First, extends a class from AbstractComponent and implements this interface
    2. Declares the class in lang.xml by enclosing it with <dynamic-tag>. Then, any tag that ZK doesn't understand, will use the class.
    • Method Detail

      • hasTag

        boolean hasTag​(java.lang.String tagname)
        Returns whether the specified tag is allowed.