Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2006

Tip: Looking for answers? Try searching our database.

tld error

Thread view: 
alexjaquet@gmail.com - 29 Jun 2006 15:57 GMT
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
Moiristo - 29 Jun 2006 18:23 GMT
> 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 $.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.