[richfaces-svn-commits] JBoss Rich Faces SVN: r4999 - in trunk/sandbox/samples/combobox-sample/src/main: webapp/WEB-INF and 1 other directories.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Sat Dec 22 12:05:08 EST 2007


Author: abelevich
Date: 2007-12-22 12:05:08 -0500 (Sat, 22 Dec 2007)
New Revision: 4999

Modified:
   trunk/sandbox/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java
   trunk/sandbox/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml
   trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.jsp
Log:


Modified: trunk/sandbox/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java
===================================================================
--- trunk/sandbox/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java	2007-12-22 17:04:48 UTC (rev 4998)
+++ trunk/sandbox/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java	2007-12-22 17:05:08 UTC (rev 4999)
@@ -20,10 +20,30 @@
  */
 
 package org.richfaces.samples;
+
+import java.util.ArrayList;
+import java.util.List;
+
 /**
  * @author $Autor$
  *
  */
 public class Bean {
 	
+	List suggestions = new ArrayList() ;
+	
+	public Bean() {
+		for (int i = 0; i < 10; i++) {
+			suggestions.add("suggestion: " + i );
+		}
+	}
+
+	public List getSuggestions() {
+		return suggestions;
+	}
+
+	public void setSuggestions(List suggestions) {
+		this.suggestions = suggestions;
+	}
+	
 }
\ No newline at end of file

Modified: trunk/sandbox/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/sandbox/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml	2007-12-22 17:04:48 UTC (rev 4998)
+++ trunk/sandbox/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml	2007-12-22 17:05:08 UTC (rev 4999)
@@ -10,6 +10,10 @@
   <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
   <param-value>server</param-value>
  </context-param>
+  <context-param>
+	<param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
+	<param-value>false</param-value>
+</context-param>
  <filter>
   <display-name>Ajax4jsf Filter</display-name>
   <filter-name>ajax4jsf</filter-name>

Modified: trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.jsp	2007-12-22 17:04:48 UTC (rev 4998)
+++ trunk/sandbox/samples/combobox-sample/src/main/webapp/pages/index.jsp	2007-12-22 17:05:08 UTC (rev 4999)
@@ -8,7 +8,7 @@
 	<body>
 		<f:view>
 			<h:form>
-				<cmb:comboBox>
+				<cmb:comboBox suggestionValues="#{bean.suggestions}">
 				</cmb:comboBox>
 			</h:form>
 		</f:view>




More information about the richfaces-svn-commits mailing list