Author: gmaksimenko
Date: 2008-04-21 05:52:22 -0400 (Mon, 21 Apr 2008)
New Revision: 7981
Modified:
trunk/test-applications/jsp/src/main/java/inplaceInput/InplaceInput.java
Log:
Change binding
Modified: trunk/test-applications/jsp/src/main/java/inplaceInput/InplaceInput.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/inplaceInput/InplaceInput.java 2008-04-21
09:34:00 UTC (rev 7980)
+++ trunk/test-applications/jsp/src/main/java/inplaceInput/InplaceInput.java 2008-04-21
09:52:22 UTC (rev 7981)
@@ -23,31 +23,10 @@
private boolean rendered;
private boolean immediate;
private String valueCL;
- private HtmlInplaceInput myInplaceInput;
+ private HtmlInplaceInput myInplaceInput = null;
private String bindLabel;
private String layout;
- public HtmlInplaceInput getMyInplaceInput() {
- return myInplaceInput;
- }
-
- public void setMyInplaceInput(HtmlInplaceInput myInplaceInput) {
- this.myInplaceInput = myInplaceInput;
- }
-
- public String getBindLabel() {
- return bindLabel;
- }
-
- public void setBindLabel(String bindLabel) {
- this.bindLabel = bindLabel;
- }
-
- public void checkBinding(ActionEvent actionEvent){
- FacesContext context = FacesContext.getCurrentInstance();
- bindLabel = myInplaceInput.getClientId(context);
- }
-
public InplaceInput() {
inputMaxLength = "200";
inputWidth = "150";
@@ -66,11 +45,31 @@
rendered = true;
immediate = false;
valueCL = "---";
- myInplaceInput = new HtmlInplaceInput();
bindLabel = "Click Binding";
layout = "inline";
}
+
+ public HtmlInplaceInput getMyInplaceInput() {
+ return myInplaceInput;
+ }
+
+ public void setMyInplaceInput(HtmlInplaceInput myInplaceInput) {
+ this.myInplaceInput = myInplaceInput;
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myInplaceInput.getClientId(context);
+ }
+
public void valueChangeListener(ValueChangeEvent event){
valueCL = "valueChangeListener work!";
}
Show replies by date