On 6/25/07, Ryan Lubke <Ryan.Lubke_at_sun.com> wrote:
> The TLD appears to be ok.
> Long shot, but perhaps this error is being reported because the
> setter in the corresponding tag is not a ValueExpression?
The setter definitely takes a ValueExpression.
>
> Anyway, which container is giving this error?
>
Jetty gave that error. Tomcat 6 gives "According to TLD or attribute
directive in tag file, attribute name does not accept any expressions"
>
> noah wrote:
> > 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?
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net
> > For additional commands, e-mail: users-help_at_javaserverfaces.dev.java.net
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: users-help_at_javaserverfaces.dev.java.net
>
>