Author: tkuprevich
Date: 2009-03-27 06:28:29 -0400 (Fri, 27 Mar 2009)
New Revision: 13241
Modified:
trunk/test-applications/jsp/src/main/java/inplaceSelect/InplaceSelect.java
Log:
Modified: trunk/test-applications/jsp/src/main/java/inplaceSelect/InplaceSelect.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/inplaceSelect/InplaceSelect.java 2009-03-27
10:27:51 UTC (rev 13240)
+++ trunk/test-applications/jsp/src/main/java/inplaceSelect/InplaceSelect.java 2009-03-27
10:28:29 UTC (rev 13241)
@@ -1,8 +1,12 @@
package inplaceSelect;
+import java.util.ArrayList;
+import java.util.List;
+
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
import javax.faces.event.ValueChangeEvent;
+import javax.faces.model.SelectItem;
import org.richfaces.component.html.HtmlInplaceSelect;
@@ -33,6 +37,7 @@
private HtmlInplaceSelect myInplaceSelect = null;
private String bindLabel;
private String layout;
+ private List<SelectItem> itemsList;
public void addHtmlInplaceSelect(){
ComponentInfo info = ComponentInfo.getInstance();
@@ -62,6 +67,13 @@
required = false;
requiredMessage="requiredMessage";
layout = "inline";
+
+ itemsList = new ArrayList<SelectItem>();
+ itemsList.add(new SelectItem("1", "ItemOne"));
+ itemsList.add(new SelectItem("2", "ItemTwo"));
+ itemsList.add(new SelectItem("3", "ItemThree"));
+ itemsList.add(new SelectItem("4", "ItemFour"));
+ itemsList.add(new SelectItem("5", "ItemFive"));
}
public String getBindLabel() {
@@ -279,5 +291,13 @@
this.requiredMessage = requiredMessage;
}
+ public List<SelectItem> getItemsList() {
+ return itemsList;
+ }
+ public void setItemsList(List<SelectItem> itemsList) {
+ this.itemsList = itemsList;
+ }
+
+
}
Show replies by date