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

Use of XTile error function causes bad JavaScript

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.1
    • 4.1
    • Contrib
    • 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

      Attachments

        Activity

          People

            andyhot Andreas Andreou
            paulf Paul Field
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: