Author: gmaksimenko
Date: 2008-04-18 05:23:04 -0400 (Fri, 18 Apr 2008)
New Revision: 7917
Modified:
trunk/test-applications/facelets/src/main/java/inplaceInput/InplaceInput.java
Log:
Add test for layout
Modified: trunk/test-applications/facelets/src/main/java/inplaceInput/InplaceInput.java
===================================================================
---
trunk/test-applications/facelets/src/main/java/inplaceInput/InplaceInput.java 2008-04-18
09:22:10 UTC (rev 7916)
+++
trunk/test-applications/facelets/src/main/java/inplaceInput/InplaceInput.java 2008-04-18
09:23:04 UTC (rev 7917)
@@ -1,7 +1,11 @@
package inplaceInput;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
import javax.faces.event.ValueChangeEvent;
+import org.richfaces.component.html.HtmlInplaceInput;
+
public class InplaceInput {
private String inputMaxLength;
private String inputWidth;
@@ -20,7 +24,31 @@
private boolean rendered;
private boolean immediate;
private String valueCL;
+ private HtmlInplaceInput myInplaceInput;
+ 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";
@@ -39,6 +67,9 @@
rendered = true;
immediate = false;
valueCL = "---";
+ myInplaceInput = new HtmlInplaceInput();
+ bindLabel = "Click Binding";
+ layout = "inline";
}
public void valueChangeListener(ValueChangeEvent event){
@@ -148,4 +179,13 @@
this.valueCL = valueCL;
}
+ public String getLayout() {
+ return layout;
+ }
+
+ public void setLayout(String layout) {
+ this.layout = layout;
+ }
+
+
}
Show replies by date