Re: [Proposal] Some changes to Bind.js
Ian Roughley <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <[email protected]> |
Could you provide a use case for this change? What I generally find is that when using the remote link I use an id from a model object or the database. This will generally not be the same as the name of the HTML element. /Ian tm_jee wrote: > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]