Author: mvitenkov
Date: 2008-04-21 10:20:10 -0400 (Mon, 21 Apr 2008)
New Revision: 8010
Modified:
branches/3.1.x/test-applications/jsp/src/main/java/modalPanel/ModalPanel.java
Log:
binding
Modified: branches/3.1.x/test-applications/jsp/src/main/java/modalPanel/ModalPanel.java
===================================================================
---
branches/3.1.x/test-applications/jsp/src/main/java/modalPanel/ModalPanel.java 2008-04-21
14:12:51 UTC (rev 8009)
+++
branches/3.1.x/test-applications/jsp/src/main/java/modalPanel/ModalPanel.java 2008-04-21
14:20:10 UTC (rev 8010)
@@ -1,5 +1,10 @@
package modalPanel;
+import org.richfaces.component.html.HtmlModalPanel;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+//import javax.faces.event.ValueChangeEvent;
+
public class ModalPanel {
private boolean autosized;
@@ -9,6 +14,7 @@
private boolean rendered;
private String shadowDepth;
private String shadowOpacity;
+ private String bindLabel;
private boolean showWhenRendered;
private int zindex;
private int minHeight;
@@ -19,6 +25,7 @@
private boolean resizeable;
private String inputTextTest;
private String selectOneListboxTest;
+ private HtmlModalPanel myModalPanel = null;
public String getInputTextTest() {
@@ -55,6 +62,8 @@
this.shadowOpacity = "3";
this.zindex = 3;
this.showWhenRendered = false;
+ this.bindLabel = "not ready";
+
}
public int getHeight() {
@@ -222,4 +231,26 @@
public void setZindex(int zindex) {
this.zindex = zindex;
}
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+ public HtmlModalPanel getMyModalPanel() {
+ return myModalPanel;
+ }
+
+ public void setMyModalPanel(HtmlModalPanel myModalPanel) {
+ this.myModalPanel = myModalPanel;
+ }
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myModalPanel.getClientId(context).toString();
+ System.out.println("sssssssssssssssssssssssssssssssssssssssssssssssss " +
myModalPanel.getClientId(context));
+ }
}
Show replies by date