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

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

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.1.2
    • 4.1.3
    • XHR/dhtml/Ajax
    • None
    • 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

            mschu Marcus Schulte
            alexd Alex Dean
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: