I know this is beginner JSP, but I've always used Facelets, and I
can't seem to find an example that works for me.
I've got a taglib defined as so:
<?xml version="1.0" encoding="UTF-8"?>
<taglib version="2.1" xmlns="
http://java.sun.com/xml/ns/javaee"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd">
<tlib-version>1.0</tlib-version>
<short-name>mycompany</short-name>
<uri>
http://mycompany.com/components</uri>
<tag>
<name>myComponent</name>
<tag-class>com.mycompany.MyComponentTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>name</name>
<required>false</required>
<deferred-value>
<type>java.lang.String</type>
</deferred-value>
</attribute>
<attribute>
<name>binding</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>id</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>rendered</name>
<required>false</required>
<deferred-value>
<type>boolean</type>
</deferred-value>
</attribute>
</tag>
</taglib>
But when I use the tag in a page I get
"According to the TLD, the attribute name is not a deferred-value or
deferred-method, but the specified value contains a #-expression"
What have I done wrong?