James Holmes wrote:
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.

That seems reasonable, more in line with the existing implementation, and potentially more generally useful. So my current plan will add these attributes to the tag:

addAllToLeftOnclick
addAllToRightOnclick
addToLeftOnclick
addToRightOnclick
selectAllOnclick
upDownOnLeftOnclick
upDownOnRightOnclick

(The "metaOnchange" attribute is redundant, and in my uses I'll just add several of the above attributes with identical values (just for the buttons I allow) in order to simulate it.)

That said, I am all for you opening a JIRA ticket and posting some patches.

https://issues.apache.org/struts/browse/WW-2051 opened. I'll check out the SVN repository and start working on the patches tonight.

One point though is I believe that the implementation should not rely on DOJO 
or a similar library.

This should follow from the fact that http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/optiontransferselect.js is not dependent on DOJO. Really these patches won't do anything but allow for extending what is output in the onclick attribute for the buttons, so there really shouldn't be much javascript in the patches.

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to