Tag Library Description erstellen

Werbung
Tag Library Description erstellen
Tag Library Description (.tld) erstellen
Für JSF 1.1
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
" http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd ">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>dndchart</short-name>
<uri> http://noevh.at/dndchart </uri>
<description><![CDATA[Your description here]]></description>
<tag>
<name>table</name>
<tag-class>net.sensemaker.snappy.table.SnappyTableTag</tag-class>
<body-content>JSP</body-content>
<description><![CDATA[Your description here]]></description>
<attribute>
<name>id</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description>Unique ID.</description>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<description>Values</description>
</attribute>
<attribute>
<name>changeListener</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description>Fired when a child has moved. Must be a method that takes the
DnDChartChangeEvent
class as a parameter</description>
</attribute>
1/3
Tag Library Description erstellen
<attribute>
<name>style</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description>CSS style</description>
</attribute>
</tag>
</taglib>
Für JSF 1.2
<?xml version="1.0" encoding="UTF-8"?>
<taglib xmlns=" http://java.sun.com/xml/ns/javaee " xmlns:xsi=" http://www.w3.org/2001/XMLSc
hema-instance
"
xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/
web-jsptaglibrary_2_1.xsd
"
version="2.1">
<description><![CDATA[Your description here]]></description>
<tlib-version>1.0</tlib-version>
<short-name>dndchart</short-name>
<uri> http://noevh.at/dndchart </uri>
<tag>
<description><![CDATA[Your description here]]></description>
<name>dndchart</name>
<tag-class>at.noevh.jsf.component.dndchart.DnDChartTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description><![CDATA[Component id]]></description>
<name>id</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description><![CDATA[When true component is rendered]]></description>
<name>rendered</name>
<required>false</required>
<deferred-value>
<type>boolean</type>
</deferred-value>
</attribute>
<attribute>
2/3
Tag Library Description erstellen
<name>binding</name>
<required>false</required>
<deferred-value>
<type>javax.faces.component.UIComponent</type>
</deferred-value>
</attribute>
<attribute>
<description><![CDATA[Component style]]></description>
<name>style</name>
<required>false</required>
<deferred-value>
<type>java.lang.String</type>
</deferred-value>
</attribute>
<attribute>
<description><![CDATA[List of Childelements]]></description>
<name>value</name>
<required>true</required>
<deferred-value><type>java.lang.Object</type></deferred-value>
</attribute>
<attribute>
<description><![CDATA[Listener method is called, when childs have
changed]]></description>
<name>changeListener</name>
<required>false</required>
<deferred-method>
<method-signature>
void listener(at.noevh.jsf.component.dndchart.DnDChartChangeEvent)
</method-signature>
</deferred-method>
</attribute>
</tag>
</taglib>
3/3
Herunterladen