You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "tm_jee (JIRA)" <ji...@apache.org> on 2006/06/26 18:26:16 UTC

[jira] Commented: (WW-1362) ajax theme topic subscription

    [ http://issues.apache.org/struts/browse/WW-1362?page=comments#action_37608 ] 

tm_jee commented on WW-1362:
----------------------------

changes is in Bind.js, from

this.load = function(type, data) {
    ....
   dojo.event.topic.publish( topic, "notify" );
    .....
}

to
this.load = function(type, data) {
   ....
   dojo.event.topic.publish(topic, self.id);
   ....
}

> 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
>     Assignee: 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