Tapestry
  1. Tapestry
  2. TAPESTRY-1746

Input validation documentation includes an invalid template that results in a parser error

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.5
    • Fix Version/s: 5.0.6
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        Howard M. Lewis Ship added a comment -

        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.

        Show
        Howard M. Lewis Ship added a comment - 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.

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Nick Westgate
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development