Dale, I ran into this issue as well and was thinking of implementing "onclick" attributes for each of the optionstransferselect buttons so that I could capture when one of the lists changes. This would be similar to what you're doing, accept that it would require every button's onlick event to call the same method. I believe there is a use to being able to attach an event to each button for the use you and I desire or for something altogether different. I am all for a master "onchange" event attribute like you mention. I don't see that as being mutually exclusive to adding onlick attributes for each button. Basically, both things should be implemented in my mind.
That said, I am all for you opening a JIRA ticket and posting some patches. I can get the patches committed once they've been reviewed. One point though is I believe that the implementation should not rely on DOJO or a similar library. It should be plain JavaScript if at all possible. This way the AJAX theme is not required. James On Fri Jul 20 15:19 , Dale Newfield <[EMAIL PROTECTED]> sent: >An optiontransferselect is composed on the page of a couple select >boxes, and buttons to move items around in/between them. The semantic >meaning of this collection of elements is a single selected and ordered >list, and I would like to add an "onchange" javascript call for when the >selected items change. The problem is that the tag only provides for >registering these types of events on the two select boxes, and as far as >they are concerned, adding additional (non-selected) items does not >count as a change in what it's watching: which items are selected. > >I propose adding another more global "metaonchange" attribute to this >tag, which gets called upon completion of any of the functions >implementing the movement buttons. > >Comments? Is there anyone that would find this simple to add, or should >I create a JIRA ticket and post a set of patches? Can anyone quickly >tell me if my guess that this will only require changes to three files >is incorrect? (OptionTransferSelect.java, optiontransferselect.js, >simple/optiontransferselect.ftl) > > >http://struts.apache.org/2.x/docs/optiontransferselect.html > >-Dale > >--------------------------------------------------------------------- >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]