[richfaces-svn-commits] JBoss Rich Faces SVN: r9169 - in trunk/test-applications/jsp/src/main: webapp/SuggestionBox and 1 other directories.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Jun 24 04:26:27 EDT 2008


Author: adubovsky
Date: 2008-06-24 04:26:27 -0400 (Tue, 24 Jun 2008)
New Revision: 9169

Modified:
   trunk/test-applications/jsp/src/main/java/sb/Sb.java
   trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBox.jsp
   trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxProperty.jsp
   trunk/test-applications/jsp/src/main/webapp/styles/styles.css
Log:
Add some properties to Suggestion box

Modified: trunk/test-applications/jsp/src/main/java/sb/Sb.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/sb/Sb.java	2008-06-23 17:25:46 UTC (rev 9168)
+++ trunk/test-applications/jsp/src/main/java/sb/Sb.java	2008-06-24 08:26:27 UTC (rev 9169)
@@ -100,7 +100,7 @@
 
 	public void checkBinding(ActionEvent actionEvent) {
 		FacesContext context = FacesContext.getCurrentInstance();
-		bindLabel = mySuggestionBox.getClientId(context);
+		bindLabel = mySuggestionBox.getClientId(context) + ";   param: " + mySuggestionBox.getParam();
 	}
 	
 	public List autocomplete(Object event) {

Modified: trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBox.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBox.jsp	2008-06-23 17:25:46 UTC (rev 9168)
+++ trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBox.jsp	2008-06-24 08:26:27 UTC (rev 9169)
@@ -38,9 +38,10 @@
  		onselect="#{event.onselect}" 
  		onsubmit="#{event.onsubmit}"
 		
-		usingSuggestObjects="true"
+		popupStyle="background-color: black" 
+		
+		usingSuggestObjects="#{sb.usingSuggestObjects}"
 		reRender="label"
-		param="param:#{result.text}" 
 		rendered="#{sb.rendered}" 
 		requestDelay="#{sb.requestDelay}"
 		selfRendered="#{sb.selfRendered}" 
@@ -57,8 +58,6 @@
 		shadowOpacity="#{sb.shadowOpacity}"
 		shadowDepth="#{sb.shadowDepth}" 
 		selectValueClass="mousemove" 
-		popupClass="#{style.popupClass}" 
-		popupStyle="#{style.popupStyle}" 
 		style="#{style.style}" 
 		styleClass="#{style.styleClass}" 
 		selectedClass="#{style.selectedClass}" 

Modified: trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxProperty.jsp	2008-06-23 17:25:46 UTC (rev 9168)
+++ trunk/test-applications/jsp/src/main/webapp/SuggestionBox/SuggestionBoxProperty.jsp	2008-06-24 08:26:27 UTC (rev 9169)
@@ -26,7 +26,7 @@
 				<a4j:support event="onchange" reRender="suggestionBoxId"></a4j:support>
 			</h:selectOneMenu>
 			
-			<h:commandButton id="bindingButtonID" actionListener="#{sb.checkBinding}" value="binding" />
+			<h:commandButton id="bindingButtonID" actionListener="#{sb.checkBinding}" value="binding & param" />
 			<h:outputText value="#{sb.bindLabel}" />
 			
 			<h:outputText value="border"/>

Modified: trunk/test-applications/jsp/src/main/webapp/styles/styles.css
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/styles/styles.css	2008-06-23 17:25:46 UTC (rev 9168)
+++ trunk/test-applications/jsp/src/main/webapp/styles/styles.css	2008-06-24 08:26:27 UTC (rev 9169)
@@ -6,9 +6,13 @@
 /* Suggestion Box */
 .entryClass {
 	color: red;
-	background: yellow;
+	background-color: yellow;
 }
 
+.popupClass {
+	background-color: white;
+}
+
 /* Message and messages */
 .rich-message-label {
 	padding: 0px 10px;




More information about the richfaces-svn-commits mailing list