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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        2d 14h 5m 1 Andreas Andreou 05/Jun/06 14:04
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568908 ] jira [ 12590182 ]
        Mark Thomas made changes -
        Workflow jira [ 12372768 ] Default workflow, editable Closed status [ 12568908 ]
        Andreas Andreou made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Andreas Andreou made changes -
        Fix Version/s 4.0.3 [ 12310994 ]
        Fix Version/s 4.1 [ 12310632 ]
        Andreas Andreou made changes -
        Fix Version/s 4.0.3 [ 12310994 ]
        Andreas Andreou made changes -
        Field Original Value New Value
        Assignee Andreas Andreou [ andyhot ]
        Paul Field created 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