Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2423

Wrong component id check for inherited pages/components

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 5.4
    • None
    • tapestry-core

    Description

      When page B inherits page A (providing its own template) and A implements some event handler methods on some components, displaying page B throws an TapestryException that claims page B does not contain those components in its template.

      I think the pb occurs in the ComponentIdValidator#validate(ComponentResources) method because, we only check in the current ComponentResource and never in its parents if they exist.

      Remarks :

      • Occurs with tapestry 5.4-beta-22
      • Symbol tapestry.compatibility.unknown-component-id-check-enabled can't be used (no more used in 5.4-beta-22)

      Regards,
      Nourredine.

      Attachments

        1. sample.zip
          50 kB
          Nourredine K.

        Activity

          People

            Unassigned Unassigned
            nourredine Nourredine K.
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: