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

EventListener - send custom data in the same way browser event data is sent

    Details

    • Type: Wish
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.1.3
    • Component/s: XHR/dhtml/Ajax
    • Labels:
      None
    • Environment:
      any

      Description

      I wish i could send some customized data along with the browser event data that is already sent.

      I have a situation where the event i'm listening for is a function which has as an attribute a JSON object.

      For example :
      tree.afterExpand=function(expandedNodeData) {}

      When using the event listener i would like to be able to access the data :

      @EventListener(targets="tree",events="afterExpand")
      public doSomething(iRequestCycle cycle , BrowserEvent event) {
      //get somehow the expandedNodeData , maybe cycle.getParameter("data") , or event.get("data")
      }

      Alex

        Attachments

          Activity

            People

            • Assignee:
              mschu Marcus Schulte
              Reporter:
              alexd Alex Dragomir
            • Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: