tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vernon <vwu...@yahoo.com>
Subject How this NoSuchDefinitionException occurs?
Date Wed, 05 Mar 2008 06:09:55 GMT

In the definition file, I have the followings:

    <definition name="news.google.world.ca"
extends="news.bbc.world">
        <put-attribute name="content"
value="content.google.world.ca" 
type="definition"/>
    </definition>
    <definition name="content.google.world.ca" 
template="/WEB-INF/jsp/news/world/google/content.jsp"
>
        <put-attribute name="news1"
value="googleWorldNewsCA" 
type="definition"/>
    </definition>   
    <definition name="googleWorldNewsCA"
extends="google_news_section">
        <put-attribute name="sourceName"
value="google.w.ca"/>
    </definition>

And the JSP file

<%@ taglib prefix="tiles"
uri="http://tiles.apache.org/tags-tiles" %>

// ...
            <div id="contents">
                <tiles:insertAttribute name="news1"/>
            </div>

Here is te error:

ERROR
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag:79
- 
Error executing tag: news1
org.apache.tiles.definition.NoSuchDefinitionException:
news1
    at 
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:394)
    at 
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
    at 
org.apache.tiles.jsp.taglib.InsertDefinitionTag.render(InsertDefinitionTag.java:63)
    at 
org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
    at 
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
    at 
org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
    at 
org.apache.jsp.WEB_002dINF.jsp.news.world.google.content_jsp._jspx_meth_tiles_insertDefinition_0(content_jsp.java:305)
    at 
org.apache.jsp.WEB_002dINF.jsp.news.world.google.content_jsp._jspService(content_jsp.java:114)
...

Among a set of similar Tiles setting, only two of them
run into this 
error. I am unable to tell any difference between
those two and the rest.


      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Mime
View raw message