[
https://issues.apache.org/jira/browse/TAPESTRY-1746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527935
]
Howard M. Lewis Ship commented on TAPESTRY-1746:
------------------------------------------------
The parser is working correctly. it allows precedence to the @Component in the
class (the class takes precedence over the template).
The <t:form> in the template is assumed to be a different component. It is
auto assigned an id, probably "form_0". Thus component "form" (as defined in
the class) is not in the template.
> Validation documentation example generates a parser error (which confuses
> newbies)
> ----------------------------------------------------------------------------------
>
> Key: TAPESTRY-1746
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1746
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.5
> Reporter: Nick Westgate
> Priority: Minor
>
> This is a parser and a doc bug. In the "Input Validation" docs:
> <t:form>
> causes something like:
> [ERROR] Login Embedded component(s) form are defined within component class
> Login, but are not present in the component template.
> Fix the parser (exercise for the reader) and change the example to something
> like:
> <t:form t:id="form">
> All the examples need to "just work" if copied and pasted. (Obviously.)
> Cheers,
> Nick.
--
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]