[richfaces-svn-commits] JBoss Rich Faces SVN: r2350 - in trunk/test-applications/facelets/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:43 EDT 2007
Author: ayanul
Date: 2007-08-20 11:17:42 -0400 (Mon, 20 Aug 2007)
New Revision: 2350
Modified:
trunk/test-applications/facelets/src/main/java/ddMenu/DDMenu.java
trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DDMenu.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-612
Modified: trunk/test-applications/facelets/src/main/java/ddMenu/DDMenu.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/ddMenu/DDMenu.java 2007-08-20 15:09:38 UTC (rev 2349)
+++ trunk/test-applications/facelets/src/main/java/ddMenu/DDMenu.java 2007-08-20 15:17:42 UTC (rev 2350)
@@ -4,22 +4,24 @@
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() {
+ selectMenu = "accord";
hideDelay = 0;
showDelay = 0;
verticalOffset = 0;
@@ -158,4 +160,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/facelets/src/main/webapp/DropDownMenu/DDMenu.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DDMenu.xhtml 2007-08-20 15:09:38 UTC (rev 2349)
+++ trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DDMenu.xhtml 2007-08-20 15:17:42 UTC (rev 2350)
@@ -137,11 +137,11 @@
<h:outputText value="Item3" />
</rich:menuItem>
<rich:menuItem value="Item4">
- <select id="selectCar" name="selectCar" size="1">
- <option value="accord">Honda Accord</option>
- <option value="4runner">Toyota 4Runner</option>
- <option value="nissan-z">Nissan Z350</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