Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1855

JavaScript callback on grid inplace update

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tapestry-core
    • Labels:

      Description

      It's no direct way to call JS function from InplaceUpdate event handler

      Not in this case:
      void onInplaceUpdateFromGrid(String zone){
      ajaxResponseRenderer.addCallback(new JavaScriptCallback() {

      public void run(JavaScriptSupport javascriptSupport)

      { javascriptSupport.addInitializerCall("updateGrid",""); }

      });
      }

      neither in this case:
      void onInplaceUpdateFromGrid(String zone)

      { javascriptSupport.addScript("Tapestry.Initializer.updateGrid()"); }

      function's call don't posted in update zone AJAX response to client.
      It should be to reinitialize styles in updated part.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              slonm Mihail Slobodyanuk
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: