You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2005/09/15 13:35:57 UTC

svn commit: r289207 - in /myfaces/examples/trunk/sandbox/src/java/org/apache/myfaces/examples/autoupdatedatatablebeans: ./ AutoUpdateDataTableBean.java

Author: mmarinschek
Date: Thu Sep 15 04:35:53 2005
New Revision: 289207

URL: http://svn.apache.org/viewcvs?rev=289207&view=rev
Log:
autoupdatedatatablebean was missing

Added:
    myfaces/examples/trunk/sandbox/src/java/org/apache/myfaces/examples/autoupdatedatatablebeans/
    myfaces/examples/trunk/sandbox/src/java/org/apache/myfaces/examples/autoupdatedatatablebeans/AutoUpdateDataTableBean.java

Added: myfaces/examples/trunk/sandbox/src/java/org/apache/myfaces/examples/autoupdatedatatablebeans/AutoUpdateDataTableBean.java
URL: http://svn.apache.org/viewcvs/myfaces/examples/trunk/sandbox/src/java/org/apache/myfaces/examples/autoupdatedatatablebeans/AutoUpdateDataTableBean.java?rev=289207&view=auto
==============================================================================
--- myfaces/examples/trunk/sandbox/src/java/org/apache/myfaces/examples/autoupdatedatatablebeans/AutoUpdateDataTableBean.java (added)
+++ myfaces/examples/trunk/sandbox/src/java/org/apache/myfaces/examples/autoupdatedatatablebeans/AutoUpdateDataTableBean.java Thu Sep 15 04:35:53 2005
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.myfaces.examples.autoupdatedatatablebeans;
+
+import java.util.ArrayList;
+
+/**
+ * Backing Bean for ajaxDataTableSingle.jsp
+ */
+public class AutoUpdateDataTableBean {
+
+    private ArrayList testList = new ArrayList();
+
+    public ArrayList getTestList()
+    {
+
+
+        testList.clear();
+
+        //testList.add(0);
+        for (int i = 0; i < 10; i++)
+            testList.add(new Integer((int) (Math.random() * 100)));
+
+        return testList;
+    }
+
+
+
+
+}