ajax theme topic subscription
-----------------------------

         Key: WW-1362
         URL: http://issues.apache.org/struts/browse/WW-1362
     Project: Struts Action 2
        Type: Improvement

    Versions: WW 2.2.2    
    Reporter: tm_jee
 Assigned to: tm_jee 
     Fix For: 2.0.0


With the code below: -

<script>
  var myObj = {
        receivedTopic: function(source) {
            // NOTE A:
        }
   };
  dojo.event.topic.subscribe("myTopic", myObj, "receivedTopic");
</script>

<saf:a id="myAnchor"  notifyTopics="myTopic">Click Me</saf:a>


Currently at NOTE:A ,  source will be "notify", this patch is to improve this 
bit resulting in the source will be the id of the dom source where the topic is 
fired.

eg. in this case, after the patch, the source will be "myAnchor"



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to