Author: vmolotkov
Date: 2008-12-24 13:52:48 -0500 (Wed, 24 Dec 2008)
New Revision: 12022
Modified:
trunk/ui/pickList/src/main/config/component/picklist.xml
trunk/ui/pickList/src/main/templates/htmlPickList.jspx
Log:
https://jira.jboss.org/jira/browse/RF-4595
Modified: trunk/ui/pickList/src/main/config/component/picklist.xml
===================================================================
--- trunk/ui/pickList/src/main/config/component/picklist.xml 2008-12-24 18:52:44 UTC (rev
12021)
+++ trunk/ui/pickList/src/main/config/component/picklist.xml 2008-12-24 18:52:48 UTC (rev
12022)
@@ -180,6 +180,11 @@
<classname>java.lang.String</classname>
<description>A JavaScript event handler called on a list change
operation</description>
</property>
+ <property>
+ <name>onlistchange</name>
+ <classname>java.lang.String</classname>
+ <description>A JavaScript event handler called before list change
operation</description>
+ </property>
<property>
<name>disabled</name>
<classname>boolean</classname>
Modified: trunk/ui/pickList/src/main/templates/htmlPickList.jspx
===================================================================
--- trunk/ui/pickList/src/main/templates/htmlPickList.jspx 2008-12-24 18:52:44 UTC (rev
12021)
+++ trunk/ui/pickList/src/main/templates/htmlPickList.jspx 2008-12-24 18:52:48 UTC (rev
12022)
@@ -166,6 +166,7 @@
new Richfaces.PickList.Source('#{clientId}',
'#{clientId}internal_tab', '#{clientId}internal_header_tab',
'#{clientId}focusKeeper', undefined, Richfaces.PickList.Source.SelectItem,
#{this:getColumnClassesAsJSArray(context, component)},
#{this:getRowClassesAsJSArray(context, component)}),
"#{clientId}", [['copy', 'discopy'], ['copyAll',
'discopyAll'], ['remove', 'disremove'],
['removeAll','disremoveAll']],
"#{switchByClick}", {onlistchanged: #{this:getAsEventHandler(context,
component, "onlistchanged")},
+ onlistchange: #{this:getAsEventHandler(context, component,
"onlistchange")},
onfocus:#{this:getAsEventHandler(context, component, "onfocus")},
onblur:#{this:getAsEventHandler(context, component, "onblur")}},
"#{clientId}valueKeeper");