[
https://issues.apache.org/jira/browse/TAPESTRY-1649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jun Tsai reopened TAPESTRY-1649:
--------------------------------
PageClass:
public class ViewForum {
@Component(parameters={"source=posts","value=post"})
private Loop postsLoop;
private Post post;
private List<Post> posts;
void onActivate(){
posts=new ArrayList<Post>();
posts.add(new Post("title"));
}
public Post getPost() {
return post;
}
public void setPost(Post post) {
this.post=post;
}
public List getPosts() {
return posts;
}
}
template:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<t:layout xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<t:postsLoop>
${post.title}
</t:postsLoop>
</t:layout>
console:
11:29:33.944 ERROR! [SocketListener0-0]
org.apache.tapestry.internal.services.PageLoaderProcessor.loadTemplateForComponent(PageLoaderProcessor.java:456)
>44> Embedded component(s) postsLoop are defined within component class
lichen.pages.topic.ViewTopic, but are not present in the component template.
ps: .The page can display correctly. but there are some error in console. if I
use <div t:id="postsLoop"></div> ,No error messages in console.
> PageLoaderProcessor check template is invlidate.
> ------------------------------------------------
>
> Key: TAPESTRY-1649
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1649
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.5
> Environment: T5.0.5
> Reporter: Jun Tsai
> Assignee: Howard M. Lewis Ship
>
> java:
>
> @Component(parameters={"source=posts","value=post"})
> private Loop postsLoop;
> html:
> <t:postsLoop>
> ... ...
> </postsLoop>
> log in console:
> 11:29:33.944 ERROR! [SocketListener0-0]
> org.apache.tapestry.internal.services.PageLoaderProcessor.loadTemplateForComponent(PageLoaderProcessor.java:456)
> >44> Embedded component(s) postsLoop are defined within component class
> lichen.pages.topic.ViewTopic, but are not present in the component template.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]