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

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Mon Aug 20 11:17:50 EDT 2007


Author: ayanul
Date: 2007-08-20 11:17:50 -0400 (Mon, 20 Aug 2007)
New Revision: 2351

Modified:
   trunk/test-applications/jsp/src/main/java/ddMenu/DDMenu.java
   trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DDMenu.jsp
Log:
http://jira.jboss.com/jira/browse/RF-612

Modified: trunk/test-applications/jsp/src/main/java/ddMenu/DDMenu.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/ddMenu/DDMenu.java	2007-08-20 15:17:42 UTC (rev 2350)
+++ trunk/test-applications/jsp/src/main/java/ddMenu/DDMenu.java	2007-08-20 15:17:50 UTC (rev 2351)
@@ -4,20 +4,21 @@
 
 public class DDMenu {
 
-	private int			hideDelay;
-	private int			showDelay;
-	private int			verticalOffset;
-	private int			horizontalOffset;
-	private String		event;
-	private String		direction	= "";
-	private String		groupDirection;
-	private String		jointPoint	= "";
-	private String		popupWidth	= "";
-	private String		icon			= null;
-	private String		iconFolder	= null;
-	private boolean	rendered;
-	private boolean	disabled;
-	private boolean	check;
+	private int hideDelay;
+	private int showDelay;
+	private int verticalOffset;
+	private int horizontalOffset;
+	private String event;
+	private String direction = "";
+	private String groupDirection;
+	private String jointPoint = "";
+	private String popupWidth = "";
+	private String icon = null;
+	private String iconFolder = null;
+	private String selectMenu;
+	private boolean rendered;
+	private boolean disabled;
+	private boolean check;
 
 	public DDMenu() {
 		hideDelay = 0;
@@ -158,4 +159,12 @@
 	public void setEvent(String event) {
 		this.event = event;
 	}
+
+	public String getSelectMenu() {
+		return selectMenu;
+	}
+
+	public void setSelectMenu(String selectMenu) {
+		this.selectMenu = selectMenu;
+	}
 }

Modified: trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DDMenu.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DDMenu.jsp	2007-08-20 15:17:42 UTC (rev 2350)
+++ trunk/test-applications/jsp/src/main/webapp/DropDownMenu/DDMenu.jsp	2007-08-20 15:17:50 UTC (rev 2351)
@@ -126,11 +126,11 @@
 						<h:outputText value="Item3" />
 					</rich:menuItem>
 					<rich:menuItem value="Item4">
-						<select id="selectCar" name="selectCar" size="1">
-						  <option value="accord"><f:verbatim>Honda Accord</f:verbatim></option>
-						  <option value="4runner"><f:verbatim>Toyota 4Runner</f:verbatim></option>
-						  <option value="nissan-z"><f:verbatim>Nissan Z350</f:verbatim></option>
-						</select>
+							<h:selectOneMenu value="#{dDMenu.selectMenu}">
+								<f:selectItem itemLabel="Honda Accord" itemValue="accord" />
+								<f:selectItem itemLabel="Toyota 4Runner" itemValue="4runner" />
+								<f:selectItem itemLabel="Nissan Z350" itemValue="nissan-z" />
+							</h:selectOneMenu>
 					</rich:menuItem>
 					<rich:menuSeparator />
 					<rich:menuItem icon="#{dDMenu.icon}">




More information about the richfaces-svn-commits mailing list