Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2005

Using component classes as component parameters fails (Could not find a coercion)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.7
    • 5.0.8
    • tapestry-core
    • None

    Description

      We need to use inside one Tapestry component a parameter which value type is another component class (in the example bug.components.TestComponent). When binding this parameter it fails with an error message: "Could not find a coercion from type bug.components.TestComponent to type bug.components.TestComponent.".

      It seems that at runtime the component classes do not match (some bytecode manipulation probably).

      Are we doing something incorrectly or it is not allowed to define parameters which type is some other component class?

      Attachments

        1. simpleExample.ZIP
          4 kB
          Priit Karu

        Activity

          People

            hlship Howard Lewis Ship
            karu Priit Karu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: