[
https://issues.apache.org/jira/browse/TAPESTRY-1649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534080
]
Howard M. Lewis Ship commented on TAPESTRY-1649:
------------------------------------------------
The fact that this works is a bit of a coincidence. It's not intended. This
should be a fatal error, as there is no component type "PostsLoop".
The coincidence is that the assigned id is "postsloop" which matches Jun's
explicit name. Tapestry then "forgets" that there's no component type
"PostLoop" and uses the explicit type (defined by the field, i.e., the type of
field postloop);.
> 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]