Author: gmaksimenko
Date: 2008-04-18 03:13:08 -0400 (Fri, 18 Apr 2008)
New Revision: 7915
Modified:
trunk/test-applications/jsp/src/main/java/inplaceInput/InplaceInput.java
Log:
Add binding and tabbing
Modified: trunk/test-applications/jsp/src/main/java/inplaceInput/InplaceInput.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/inplaceInput/InplaceInput.java 2008-04-18
07:12:51 UTC (rev 7914)
+++ trunk/test-applications/jsp/src/main/java/inplaceInput/InplaceInput.java 2008-04-18
07:13:08 UTC (rev 7915)
@@ -1,6 +1,9 @@
package inplaceInput;
import javax.faces.event.ValueChangeEvent;
+import org.richfaces.component.html.HtmlInplaceInput;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
public class InplaceInput {
private String inputMaxLength;
@@ -20,7 +23,30 @@
private boolean rendered;
private boolean immediate;
private String valueCL;
+ private HtmlInplaceInput myInplaceInput;
+ private String bindLabel;
+ 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";
@@ -39,6 +65,8 @@
rendered = true;
immediate = false;
valueCL = "---";
+ myInplaceInput = new HtmlInplaceInput();
+ bindLabel = "Click Binding";
}
public void valueChangeListener(ValueChangeEvent event){
Show replies by date