Author: mvitenkov
Date: 2008-04-29 08:50:09 -0400 (Tue, 29 Apr 2008)
New Revision: 8298
Modified:
trunk/test-applications/facelets/src/main/java/dataDefinitionList/DataDefinitionList.java
Log:
binding
Modified:
trunk/test-applications/facelets/src/main/java/dataDefinitionList/DataDefinitionList.java
===================================================================
---
trunk/test-applications/facelets/src/main/java/dataDefinitionList/DataDefinitionList.java 2008-04-29
12:49:52 UTC (rev 8297)
+++
trunk/test-applications/facelets/src/main/java/dataDefinitionList/DataDefinitionList.java 2008-04-29
12:50:09 UTC (rev 8298)
@@ -1,7 +1,9 @@
package dataDefinitionList;
import java.util.ArrayList;
-
+import org.richfaces.component.html.HtmlDataDefinitionList;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
import util.data.Data;
public class DataDefinitionList
@@ -13,7 +15,18 @@
private String title;
private String dir;
private int mSize;
+ private HtmlDataDefinitionList myDefinitionList = null;
+ private String bindLabel;
+ private String columnClasses;
+ public String getColumnClasses() {
+ return columnClasses;
+ }
+
+ public void setColumnClasses(String columnClasses) {
+ this.columnClasses = columnClasses;
+ }
+
public String getDir() {
return dir;
}
@@ -42,6 +55,8 @@
first = 0;
rendered = true;
title = "title";
+ bindLabel = "not ready";
+ columnClasses = "test,style";
for(int i = 1; i < Data.cityAfrica.length; i++)
arr.add(new Data(Data.cityAfrica[i]));
}
@@ -81,5 +96,26 @@
public ArrayList<Data> getArr() {
return arr;
}
+
+ public HtmlDataDefinitionList getMyDefinitionList() {
+ return myDefinitionList;
+ }
+
+ public void setMyDefinitionList(HtmlDataDefinitionList myDefinitionList) {
+ this.myDefinitionList = myDefinitionList;
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myDefinitionList.getBaseClientId(context);
+ }
+
}
\ No newline at end of file
Show replies by date