[richfaces-svn-commits] JBoss Rich Faces SVN: r5249 - trunk/sandbox/ui/combobox/src/main/templates.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Jan 9 15:44:14 EST 2008


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




More information about the richfaces-svn-commits mailing list