tld error

A

alexjaquet

Hi,

I'm currently doing some test with custom taglib and I didn't
understand why I'm getting the following error message :

javax.servlet.ServletException: /WEB-INF/tags/buttons.tag(4,0) D'après
la TLD, l'attribut value n'accepte aucune expression

here is my tag :
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<h:commandButton id="btnIndex" action="goIndex"
value="${pageScope.aValue}" />

and here my taglib :

<?xml version="1.0" encoding="UTF-8" ?>
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.0">
<description>A custom tag library</description>
<display-name>custom</display-name>
<tlib-version>1.0</tlib-version>
<short-name>custom</short-name>
<uri>http://dummyLink/ebonus/tags</uri>
<tag-file>
<name>layout</name>
<path>/WEB-INF/tags/layout.tag</path>
</tag-file>
<tag-file>
<name>buttons</name>
<path>/WEB-INF/tags/buttons.tag</path>
<attribute>
<name>value</name>
<required>false</required>
<rtexpvalue>true</rtexpvalue>
</attribute>
</tag-file>
<tag-file>
<name>table</name>
<path>/WEB-INF/tags/table.tag</path>
</tag-file>
<tag-file>
<name>test</name>
<path>/WEB-INF/tags/test.tag</path>
</tag-file>
</taglib>

any explanation would be really appreciate :)

regards
 
M

Moiristo

value="${pageScope.aValue}" />

I dont understand much of what you're saying, but shouldn't this be
'value="#{pageScope.aValue}"'? JSF expressions start with # instead of $.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,261
Messages
2,571,040
Members
48,769
Latest member
Clifft

Latest Threads

Top