Tapestry
  1. Tapestry
  2. TAPESTRY-976

Use of XTile error function causes bad JavaScript

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.1
    • Fix Version/s: 4.1
    • Component/s: Contrib
    • Labels:
      None

      Description

      If you include a value for the 'errorName' parameter of the XTile component then it generates JavaScript like this:

      (for example errorName='handleError')

      requestObject.onreadystatechange = function() {
      if (requestObject.readyState == 4) {
      if (requestObject.status == 200)

      { var data = extractData(requestObject); receiveResults(data); }

      else if ("handleSearchError" = "") // THIS IS THE BAD LINE
      handleError(requestObject);
      }
      }

      It should probably generate just 'else functionName(requestObject)'

      See line 56 of file XTile.script in org.apache.tapestry.contrib.ajax

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Andreas Andreou
            Reporter:
            Paul Field
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development