[Proposal] Some changes to Bind.js

tm_jee <[email protected]>
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <22436915.1148795065627.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
Hi guys, 

I am thinking about some changes in Bind.js. Basically its allowing the topic listener know the id of the topic publisher.

[code]
  <saf:div id="div1" theme="ajax" href="/namespace/myActionAlias.action">
       Initial Value
  </saf:div>

  <saf:a id="link1" theme="ajax" notifyTopics="myTopic" />
  <saf:a id="link2" theme="ajax" notifyTopics="myTopic" />
[/code]

When link1 is clicked, it will results in a XHR request '/namespace/myActionAlias.action?sourceId=link1' being requested. 
When link2 is clicked it will results in a XHR request '/namespace/myActionAlias.action?sourceId=link2' being requested.

This feature could be turn on and off by an attribute in the <saf:div ... /> tag and the parameter used (eg. sourceId) could be configured through an attribute in the <saf:div ... /> tag as well. 

What do you guys think about this?
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=32556&messageID=63055#63055

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.