[richfaces-svn-commits] JBoss Rich Faces SVN: r2568 - 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
Wed Aug 29 09:21:28 EDT 2007
Author: ayanul
Date: 2007-08-29 09:21:28 -0400 (Wed, 29 Aug 2007)
New Revision: 2568
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-756
Modified: trunk/test-applications/facelets/src/main/java/ddMenu/DDMenu.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/ddMenu/DDMenu.java 2007-08-29 13:21:13 UTC (rev 2567)
+++ trunk/test-applications/facelets/src/main/java/ddMenu/DDMenu.java 2007-08-29 13:21:28 UTC (rev 2568)
@@ -16,6 +16,7 @@
private String icon = null;
private String iconFolder = null;
private String selectMenu;
+ private String mode;
private boolean rendered;
private boolean disabled;
private boolean check;
@@ -31,6 +32,7 @@
groupDirection = "auto";
jointPoint = "";
popupWidth = "";
+ mode = "none";
icon = null;
iconFolder = null;
rendered = true;
@@ -168,4 +170,12 @@
public void setSelectMenu(String selectMenu) {
this.selectMenu = selectMenu;
}
+
+ public String getMode() {
+ return mode;
+ }
+
+ public void setMode(String mode) {
+ this.mode = mode;
+ }
}
Modified: trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DDMenu.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DDMenu.xhtml 2007-08-29 13:21:13 UTC (rev 2567)
+++ trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DDMenu.xhtml 2007-08-29 13:21:28 UTC (rev 2568)
@@ -42,10 +42,15 @@
<h:inputText value="#{dDMenu.verticalOffset}">
<a4j:support event="onchange" reRender="ddmId" />
</h:inputText>
-
- <h:outputText value="width" />
-
-
+
+ <h:outputText value="Mode:" />
+ <h:selectOneRadio value="#{dDMenu.mode}">
+ <f:selectItem itemLabel="none" itemValue="none"/>
+ <f:selectItem itemLabel="ajax" itemValue="ajax"/>
+ <f:selectItem itemLabel="server" itemValue="server"/>
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
+
<h:outputText value="Direction:" />
<h:selectOneRadio value="#{dDMenu.direction}">
<f:selectItem itemLabel="top-right" itemValue="top-right" />
@@ -99,7 +104,7 @@
<rich:spacer width="300px"></rich:spacer>
<rich:panel style="width:200px; height:50px;">
- <rich:dropDownMenu id="ddmId" value="DropDownMenu"
+ <rich:dropDownMenu id="ddmId" value="DropDownMenu" submitMode="#{dDMenu.mode}"
hideDelay="#{dDMenu.hideDelay}" direction="#{dDMenu.direction}"
horizontalOffset="#{dDMenu.horizontalOffset}"
jointPoint="#{dDMenu.jointPoint}" popupWidth="#{dDMenu.popupWidth}"
@@ -145,9 +150,8 @@
</rich:menuItem>
<rich:menuSeparator />
<rich:menuItem icon="#{dDMenu.icon}">
- <h:outputText value="CheckBox" />
- <h:selectBooleanCheckbox label="lfllf" value="#{dDMenu.check}"
- onclick="submit()" />
+ <h:outputText value="CheckBox " />
+ <h:selectBooleanCheckbox value="#{dDMenu.check}" onclick="submit()" />
</rich:menuItem>
</rich:menuGroup>
More information about the richfaces-svn-commits
mailing list