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

When a div containing a DirectLink using a PopupLinkRenderer is updated asynchronously, the attached javascript portion of the ajax response is ignored.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.1.2
    • Labels:
      None
    • Environment:
      java 1.5.0_06, OSX 10.4.8, Firefox 2, Firefox 1.5
      java 1.5.0_08, WinXP SP2, FF2, IE 6

      Description

      There are many details at the following URL, including a sample program and source to illustrate the problem.

      http://jwoodchip.blogspot.com/2007/02/ajax-and-tapestry.html

      Just to summarize:

      1. create a page containing an asynchronous DirectLink, and direct it to update some div (testdiv)
      2. the listener for that DirectLink changes some data around
      3. testdiv references another component which uses that data to create some more DirectLinks, but these ones are synchronous and use org.apache.tapestry.contrib.link.PopupLinkRenderer for rendering

      In that scenario, none of the popup links (ie the synchronous DirectLinks) will work, because the javascript passed along with the ajax-response is never processed, and thus popup_window() is undefined.

      1. ajaxpop.zip
        344 kB
        Julian Wood

        Activity

        Hide
        woodj Julian Wood added a comment -

        This a sample project that can be built with maven to reproduce the issue.

        Show
        woodj Julian Wood added a comment - This a sample project that can be built with maven to reproduce the issue.
        Hide
        andyhot Andreas Andreou added a comment -

        Already fixed this a few hours ago.

        Show
        andyhot Andreas Andreou added a comment - Already fixed this a few hours ago.
        Hide
        woodj Julian Wood added a comment -

        Wow that is fast! Works perfectly now. Thanks!

        Show
        woodj Julian Wood added a comment - Wow that is fast! Works perfectly now. Thanks!

          People

          • Assignee:
            andyhot Andreas Andreou
            Reporter:
            woodj Julian Wood
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development