myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r697258 - /myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/TobagoDemoController.java
Date Fri, 19 Sep 2008 21:50:19 GMT
Author: weber
Date: Fri Sep 19 14:50:19 2008
New Revision: 697258

URL: http://svn.apache.org/viewvc?rev=697258&view=rev
Log:
replace use of deprecated methods

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=697258&r1=697257&r2=697258&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 Sep 19 14:50:19 2008
@@ -247,18 +247,19 @@
 
     List<UIColumn> columns = new ArrayList<UIColumn>(3);
 
-    UIInput textbox = (UIInput)
-        CreateComponentUtils.createComponent(UIInput.COMPONENT_TYPE, RENDERER_TYPE_IN);
+      FacesContext facesContext = FacesContext.getCurrentInstance();
+      UIInput textbox = (UIInput)
+        CreateComponentUtils.createComponent(facesContext, UIInput.COMPONENT_TYPE, RENDERER_TYPE_IN,
"sac1i");
     ComponentUtil.setStringProperty(
         textbox, ATTR_VALUE, "#{luminary.population}");
     columns.add(CreateComponentUtils.createColumn(
-        "#{overviewBundle.solarArrayPopulation}", "true", null, textbox));
+        "#{overviewBundle.solarArrayPopulation}", "true", null, textbox, "sac1"));
 
     columns.add(CreateComponentUtils.createTextColumn(
-        "#{overviewBundle.solarArrayDistance}", "true", "right", "#{luminary.distance}"));
+        "#{overviewBundle.solarArrayDistance}", "true", "right", "#{luminary.distance}",
"sac1"));
 
     columns.add(CreateComponentUtils.createTextColumn(
-        "#{overviewBundle.solarArrayPeriod}", "true", "right", "#{luminary.period}"));
+        "#{overviewBundle.solarArrayPeriod}", "true", "right", "#{luminary.period}", "sac1"));
 
 
     return columns;



Mime
View raw message