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

EventListener in components that get included in a page within a loop are triggered incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.1.5
    • None
    • None
    • None

    Description

      In a simple component (@Selector) that has a PropertySelection (named data) and this:

      @EventListener(targets="data", events="onchange")
      public void doSelect()

      { System.out.println("Selected: " + getValue()); }

      and in a page that includes this let's say 3 times using @For:

      <form jwcid="@Form">
      <span jwcid="@For" source="ognl:

      {1,2,3}

      ">
      <span jwcid="@Selector"/>
      </span>
      </form>

      Changing any select correctly starts an ajax request, but the value printed is always the one of the last select.

      Attachments

        1. tap-2250.zip
          16 kB
          Andreas Andreou

        Issue Links

          Activity

            People

              Unassigned Unassigned
              andyhot Andreas Andreou
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: