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

AjaxFormLoop: rowvalue missing when removeRowLink is not plain text

    Details

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

      Description

      Component: RemoveRowLink
      Version: 5.4 alpha 25
      Browser: Chrome Win 8

      <t:removeRowLink>
      <img src="${asset:remove.png}" />
      </t:removeRowLink>

      ajaxformloop.js searches for the "data-afl-row-value" attribute on the element that has been clicked. the data attribute is rendered on the link. the element that emits the click event is the image.

      result: "rowvalue" is missing => exception.

      Intermediate solution: use text only as body for RemoveRowLink component. the event will be emitted from the <a /> element and the data attributes will be present.

      Regression: this bug was introduced in tapestry < 5.4, in 5.3.x it worked for us.

        Attachments

          Activity

            People

            • Assignee:
              jkemnade Jochen Kemnade
              Reporter:
              felixgonschorek Felix Gonschorek
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: