[richfaces-svn-commits] JBoss Rich Faces SVN: r5915 - in trunk/samples/pickList-sample/src/main: webapp/pages and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Thu Feb 7 10:14:10 EST 2008


Author: abelevich
Date: 2008-02-07 10:14:10 -0500 (Thu, 07 Feb 2008)
New Revision: 5915

Modified:
   trunk/samples/pickList-sample/src/main/java/org/richfaces/Bean.java
   trunk/samples/pickList-sample/src/main/webapp/pages/index.jsp
Log:


Modified: trunk/samples/pickList-sample/src/main/java/org/richfaces/Bean.java
===================================================================
--- trunk/samples/pickList-sample/src/main/java/org/richfaces/Bean.java	2008-02-07 14:59:47 UTC (rev 5914)
+++ trunk/samples/pickList-sample/src/main/java/org/richfaces/Bean.java	2008-02-07 15:14:10 UTC (rev 5915)
@@ -14,6 +14,11 @@
     private String targetListWidth="140px"; 
     private String sourceListWidth="140px";
     private String listsHeight="100px";
+    private String copyAllLabel;    
+    private String copyLabel;
+    private String removeLabel;
+    private String removeAllLabel;
+    
     private String [] values = new String[]{"polecat","suricate"};
     private List listValues = new ArrayList();
     
@@ -88,4 +93,48 @@
 		this.values = values;
 	}
 
+	public String getCopyAllLabel() {
+		return copyAllLabel;
+	}
+
+	public void setCopyAllLabel(String copyAllLabel) {
+		this.copyAllLabel = copyAllLabel;
+	}
+
+	public String getCopyLabel() {
+		return copyLabel;
+	}
+
+	public void setCopyLabel(String copyLabel) {
+		this.copyLabel = copyLabel;
+	}
+
+	public String getRemoveLabel() {
+		return removeLabel;
+	}
+
+	public void setRemoveLabel(String removeLabel) {
+		this.removeLabel = removeLabel;
+	}
+
+	public String getRemoveAllLabel() {
+		return removeAllLabel;
+	}
+
+	public void setRemoveAllLabel(String removeAllLabel) {
+		this.removeAllLabel = removeAllLabel;
+	}
+
+	public List getListValues() {
+		return listValues;
+	}
+
+	public void setListValues(List listValues) {
+		this.listValues = listValues;
+	}
+
+	public void setSelectedInfo(String selectedInfo) {
+		this.selectedInfo = selectedInfo;
+	}
+
 }
\ No newline at end of file

Modified: trunk/samples/pickList-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/pickList-sample/src/main/webapp/pages/index.jsp	2008-02-07 14:59:47 UTC (rev 5914)
+++ trunk/samples/pickList-sample/src/main/webapp/pages/index.jsp	2008-02-07 15:14:10 UTC (rev 5915)
@@ -25,6 +25,20 @@
 				
 				<h:outputText value="set list heights: "></h:outputText>
 				<h:inputText value="#{pickBean.listsHeight}"></h:inputText>
+				
+				<h:outputText value="set 'CopyAll' control label: "></h:outputText>
+				<h:inputText value="#{pickBean.copyAllLabel}"></h:inputText>
+				
+				<h:outputText value="set 'Copy' control label: "></h:outputText>
+				<h:inputText value="#{pickBean.copyLabel}"></h:inputText>
+				
+				<h:outputText value="set 'Remove' control label: "></h:outputText>
+				<h:inputText value="#{pickBean.removeLabel}"></h:inputText>
+				
+				<h:outputText value="set 'RemoveAll' control label: "></h:outputText>
+				<h:inputText value="#{pickBean.removeAllLabel}"></h:inputText>
+				
+				
 			</h:panelGrid>
 			
 				<br/>
@@ -38,8 +52,11 @@
 				listsHeight="#{pickBean.listsHeight}"  
 				sourceListWidth="#{pickBean.sourceListWidth}"
 				targetListWidth="#{pickBean.targetListWidth}"
-				value="#{pickBean.values}"
-			>
+				copyAllControlLabel = "#{pickBean.copyAllLabel}"
+				copyControlLabel = "#{pickBean.copyLabel}"
+				removeControlLabel = "#{pickBean.removeLabel}"
+				removeAllControlLabel ="#{pickBean.removeLabel}" 
+				value="#{pickBean.listValues}">
 				<f:selectItem itemValue="cat" itemLabel="cat"/>
 				<f:selectItem itemValue="dog" itemLabel="dog"/>
 				<f:selectItems value="#{pickBean.testList}"/>




More information about the richfaces-svn-commits mailing list