Author: gmaksimenko
Date: 2008-04-17 08:11:15 -0400 (Thu, 17 Apr 2008)
New Revision: 7890
Modified:
trunk/test-applications/jsp/src/main/java/inplaceSelect/InplaceSelect.java
Log:
Add tabbing and binding for test page
Modified: trunk/test-applications/jsp/src/main/java/inplaceSelect/InplaceSelect.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/inplaceSelect/InplaceSelect.java 2008-04-17
12:09:54 UTC (rev 7889)
+++ trunk/test-applications/jsp/src/main/java/inplaceSelect/InplaceSelect.java 2008-04-17
12:11:15 UTC (rev 7890)
@@ -1,6 +1,9 @@
package inplaceSelect;
import javax.faces.event.ValueChangeEvent;
+import org.richfaces.component.html.HtmlInplaceSelect;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
public class InplaceSelect {
private boolean applyFromControlsOnly;
@@ -22,6 +25,8 @@
private int tabindex;
private Object value;
private String valueCL;
+ private HtmlInplaceSelect myInplaceSelect;
+ private String bindLabel;
public InplaceSelect() {
valueCL = "---";
@@ -31,10 +36,10 @@
selectWidth = "170";
defaultLabel = "defaultLabel";
controlsVerticalPosition = "center";
- controlsHorizontalPosition = "left";
+ controlsHorizontalPosition = "center";
value = "errors";
listWidth = "200";
- listHeight = "150";
+ listHeight = "50";
selectOnEdit = false;
showControls = false;
applyFromControlsOnly = false;
@@ -42,8 +47,31 @@
openOnEdit = true;
rendered = true;
immediate = false;
+ myInplaceSelect = new HtmlInplaceSelect();
+ bindLabel = "default";
}
+ public HtmlInplaceSelect getMyInplaceSelect(){
+ return myInplaceSelect;
+ }
+
+ public void setMyInplaceSelect(HtmlInplaceSelect myInplaceSelect){
+ this.myInplaceSelect = myInplaceSelect;
+ }
+
+ public String getbindLabel(){
+ return bindLabel;
+ }
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myInplaceSelect.getClientId(context);
+ }
+
+ public void setbindLabel(String bindLabel){
+ this.bindLabel = bindLabel;
+ }
+
public void valueChangeListener(ValueChangeEvent event){
valueCL = "valueChangeListener work!";
}
Show replies by date