Author: tkuprevich
Date: 2008-04-10 09:02:46 -0400 (Thu, 10 Apr 2008)
New Revision: 7733
Modified:
branches/3.1.x/test-applications/jsp/src/main/java/orderingList/OrderingList.java
Log:
Modified:
branches/3.1.x/test-applications/jsp/src/main/java/orderingList/OrderingList.java
===================================================================
---
branches/3.1.x/test-applications/jsp/src/main/java/orderingList/OrderingList.java 2008-04-10
12:41:56 UTC (rev 7732)
+++
branches/3.1.x/test-applications/jsp/src/main/java/orderingList/OrderingList.java 2008-04-10
13:02:46 UTC (rev 7733)
@@ -3,12 +3,16 @@
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
-
+import org.richfaces.component.html.HtmlOrderingList;
import javax.faces.component.html.HtmlDataTable;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
import util.data.Data;
public class OrderingList{
+ private String bindingCheck;
+ private HtmlOrderingList myOrderingList;
private ArrayList<String> info;
private ArrayList<Data> list;
private String captionLabel;
@@ -31,6 +35,14 @@
private boolean showAllData;
private boolean showSelect;
+ public void bindingCheck(ActionEvent actionEvent){
+ FacesContext faces = FacesContext.getCurrentInstance();
+ bindingCheck = "Passed";
+ System.out.println("============OL Binding Check===========");
+ System.out.println(myOrderingList.getBaseClientId(faces));
+ System.out.println("============OL Binding Check===========");
+ }
+
public boolean isFacet() {
return facet;
}
@@ -69,6 +81,7 @@
}
public OrderingList() {
+ this.bindingCheck = "Not checked";
this.info = new ArrayList<String>();
this.captionLabel = "captionLabel";
this.lenght = 10;
@@ -351,4 +364,20 @@
public void setShowSelect(boolean showSelect) {
this.showSelect = showSelect;
}
+
+ public HtmlOrderingList getMyOrderingList() {
+ return myOrderingList;
+ }
+
+ public void setMyOrderingList(HtmlOrderingList myOrderingList) {
+ this.myOrderingList = myOrderingList;
+ }
+
+ public String getBindingCheck() {
+ return bindingCheck;
+ }
+
+ public void setBindingCheck(String bindingCheck) {
+ this.bindingCheck = bindingCheck;
+ }
}