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

ComponentEventLinkEncoder omits original Link's parameters when URL Rewriting has been applied.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Invalid
    • 5.1.0.5
    • None
    • tapestry-core
    • None

    Description

      This was my use case:
      Page ABC renders a block that origins in another page XYZBlockSource. The block renders a form component and when being submitted Tapestry throws an exception that says "page ABC does not contain component form".

      It happens because the ComponentEventLinkEncoder creates a new LinkImpl from scratch when the URL of the form and thereby the original link is rewritten. It omits the original link's parameters, which are empty most of the time. Component event links contain the 't:cp' parameter to point Tapestry on their containing page if it differs from the active page.

      Attachments

        1. patch_ComponentEventLinkEncoder2.txt
          0.8 kB
          Christian Riedel
        2. patch_ComponentEventLinkEncoder.txt
          0.8 kB
          Christian Riedel

        Issue Links

          Activity

            People

              Unassigned Unassigned
              criedel Christian Riedel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: