Tag Extension
From DOC
The tag function add a tag to a taglib. The namespace name of the taglib that will hold the tag must be declared with the taglib. There are three forms of the tag function:
- A directory element creates tags in a taglib from each XHTML file in a directory. In this form, the name of the file is used for the tagname.
- A file element creates a single tag with the specified taglib giving it the name specified by the tag-name element.
- A content element allow the tag body to be specified inline. This is particularly good for tags with small bodies.
<tolvenWEB>
<!-- Add all files in this directory as tags under the specified taglib. The file name is the tag name. -->
<tag>
<namespace>http://www.myco.com/jsf/custom</namespace>
<directory>tags</directory>
</tag>
<!-- Add one file in this plugin as tag to the specified taglib. -->
<tag>
<namespace>http://www.myco.com/jsf/custom</namespace>
<tag-name>peek</tag-name>
<file>tags/peek.xhtml</file>
</tag>
<!-- Create a custom tag inline. The name of the tag is specified by the tag-name element -->
<tag>
<namespace>http://www.myco.com/jsf/custom</namespace>
<tag-name>poke</tag-name>
<content>
<div class="poke" >
<p>Poke
<ui:insert/>
</p>
</div>
</content>
</tag>
</tolvenWEB>

