You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2009/10/30 17:29:24 UTC
svn commit: r831376 -
/myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/TobagoDemoController.java
Author: lofwyr
Date: Fri Oct 30 16:29:23 2009
New Revision: 831376
URL: http://svn.apache.org/viewvc?rev=831376&view=rev
Log:
clean up
Modified:
myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/TobagoDemoController.java
Modified: myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/TobagoDemoController.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/TobagoDemoController.java?rev=831376&r1=831375&r2=831376&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/TobagoDemoController.java (original)
+++ myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/TobagoDemoController.java Fri Oct 30 16:29:23 2009
@@ -34,7 +34,6 @@
import org.apache.myfaces.tobago.example.demo.model.solar.SolarObject;
import org.apache.myfaces.tobago.model.SheetState;
import org.apache.myfaces.tobago.model.TreeState;
-import org.apache.myfaces.tobago.util.ComponentUtil;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIColumn;
@@ -279,11 +278,12 @@
List<UIColumn> columns = new ArrayList<UIColumn>(3);
- FacesContext facesContext = FacesContext.getCurrentInstance();
- UIInput textbox = (UIInput)
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ UIInput textbox = (UIInput)
CreateComponentUtils.createComponent(facesContext, UIInput.COMPONENT_TYPE, RendererTypes.IN, "sac1i");
- ComponentUtil.setStringProperty(
- textbox, Attributes.VALUE, "#{luminary.population}");
+ textbox.setValueBinding(
+ Attributes.VALUE, facesContext.getApplication().createValueBinding("#{luminary.population}"));
+
columns.add(CreateComponentUtils.createColumn(
"#{overviewBundle.solarArrayPopulation}", "true", null, textbox, "sac1"));