Author: mvitenkov
Date: 2008-04-17 11:30:42 -0400 (Thu, 17 Apr 2008)
New Revision: 7898
Modified:
branches/3.1.x/test-applications/jsp/src/main/java/ddMenu/DDMenu.java
Log:
Add binding for rich:dropDownMenu;
Modified: branches/3.1.x/test-applications/jsp/src/main/java/ddMenu/DDMenu.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/ddMenu/DDMenu.java 2008-04-17
15:13:47 UTC (rev 7897)
+++ branches/3.1.x/test-applications/jsp/src/main/java/ddMenu/DDMenu.java 2008-04-17
15:30:42 UTC (rev 7898)
@@ -1,7 +1,11 @@
package ddMenu;
import java.awt.Event;
+import org.richfaces.component.html.HtmlDropDownMenu;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
public class DDMenu {
private int hideDelay;
@@ -17,9 +21,11 @@
private String iconFolder = null;
private String selectMenu;
private String mode;
+ private String bindLabel;
private boolean rendered;
private boolean disabled;
private boolean check;
+ private HtmlDropDownMenu mydDMenu;
public DDMenu() {
selectMenu = "accord";
@@ -33,11 +39,13 @@
jointPoint = "";
popupWidth = "";
mode = "none";
+ bindLabel = "default";
icon = null;
iconFolder = null;
rendered = true;
disabled = false;
check = false;
+ mydDMenu = new HtmlDropDownMenu();
}
public String getIcon() {
@@ -248,4 +256,24 @@
setPopupWidth("auto");
setDisabled(true);
}
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+ public HtmlDropDownMenu getMydDMenu() {
+ return mydDMenu;
+ }
+
+ public void setMydDMenu(HtmlDropDownMenu mydDMenu) {
+ this.mydDMenu = mydDMenu;
+ }
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = mydDMenu.getClientId(context).toString();
+ }
}
Show replies by date