Tapestry 5
  1. Tapestry 5
  2. TAP5-1155

JavaScript initialization inside the partial page render Ajax response should be unquoted


    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.2.0
    • Component/s: tapestry-core
    • Labels:


      Currently, all the JS in an Ajax partial page render update comes inside the "script" key, as a long string. This is inefficient, since so many characters and quotes need to be escaped, and it is also harder to read and debug (especially since pretty printing is turned off, since pretty printing inside a string is no more readable that not).

      Instead, the calls to Tapestry.init() can be handled differently in an Ajax response, and encoded in a new key, "inits", an array of Tapestry.init() parameters (multiple calls to init because of the scheduling: early, normal, late).


        Howard M. Lewis Ship created issue -
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Assignee Howard M. Lewis Ship [ hlship ]
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Howard M. Lewis Ship made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Fix Version/s 5.2.0 [ 12314122 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        16h 56m 1 Howard M. Lewis Ship 16/May/10 16:10
        In Progress In Progress Closed Closed
        13h 36m 1 Howard M. Lewis Ship 17/May/10 05:47


          • Assignee:
            Howard M. Lewis Ship
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: