Author: vmolotkov
Date: 2008-01-09 15:44:14 -0500 (Wed, 09 Jan 2008)
New Revision: 5249
Modified:
trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx
Log:
selectFirstOnUpdate attribute was added
Modified: trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx
===================================================================
--- trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx 2008-01-09 20:43:59 UTC
(rev 5248)
+++ trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx 2008-01-09 20:44:14 UTC
(rev 5249)
@@ -46,6 +46,9 @@
String defaultMessage = (String)
component.getAttributes().get("defaultMessage");
variables.setVariable("defaultMessage", defaultMessage);
+
+ Boolean selectFirstOnUpdate = (Boolean)
component.getAttributes().get("selectFirstOnUpdate");
+ variables.setVariable("selectFirstOnUpdate", selectFirstOnUpdate);
]]>
@@ -80,8 +83,10 @@
#{this:getItemsTextAsJSArray(context, component)},
#{directInputSuggestions},
#{filterNewValues},
+ #{selectFirstOnUpdate},
#{this:getAsEventHandler(context, component, "onlistcall")},
#{this:getAsEventHandler(context, component, "onitemselected")},
+ #{this:getAsEventHandler(context, component, "onchange")},
"#{defaultMessage}");
</script>
</f:root>
\ No newline at end of file
Show replies by date