<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/applets/lib/datamanager.lzx</filename>
    </added>
    <added>
      <filename>app/applets/lib/modelcontroller.lzx</filename>
    </added>
    <added>
      <filename>app/applets/lib/modelgrid.lzx</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,11 +1,26 @@
 &lt;canvas title=&quot;OpenLaszlo on Rails&quot; proxied=&quot;false&quot;&gt;
   &lt;script src=&quot;../lib/shared.js&quot;/&gt;
+  &lt;include href=&quot;../lib/modelcontroller.lzx&quot;/&gt;
+  &lt;include href=&quot;../lib/modelgrid.lzx&quot;/&gt;
   &lt;script src=&quot;contacts.js&quot;/&gt;
 
+  &lt;dataset name=&quot;contactData&quot;&gt;
+    &lt;records/&gt;
+  &lt;/dataset&gt;
+
   &lt;text&gt;My source code is in app/applets/contacts/contacts.lzx.&lt;/text&gt;
 
+  &lt;modelcontroller name=&quot;contactController&quot;
+                   maindataset=&quot;$once{contactData}&quot;
+                   modelName=&quot;contact&quot;&gt;
+    &lt;handler name=&quot;oninit&quot;&gt;
+      this.loadRange(0, 22);						
+    &lt;/handler&gt;
+  &lt;/modelcontroller&gt;
+
   &lt;window y=&quot;30&quot; width=&quot;900&quot; height=&quot;400&quot; resizable=&quot;true&quot;&gt;
-    &lt;button onclick=&quot;animate('x', 100, 1000, true)&quot;&gt;Move Right&lt;/button&gt;
-    &lt;button align=&quot;right&quot; onclick=&quot;animate('x', -100, 1000, true)&quot;&gt;Move Left&lt;/button&gt;
+    &lt;modelgrid datapath =&quot;contactData:/records&quot;
+               width=&quot;100%&quot; height=&quot;100%&quot;
+               controller=&quot;$once{contactController}&quot;/&gt;
   &lt;/window&gt;
 &lt;/canvas&gt;</diff>
      <filename>app/applets/contacts/contacts.lzx</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ba2a1fc0ebd77730e30ff8b37cb6d6cf42387db1</id>
    </parent>
  </parents>
  <author>
    <name>Oliver Steele</name>
    <email>steele@osteele.com</email>
  </author>
  <url>http://github.com/osteele/openlaszlo-rails-example/commit/6d0ff5dd4b042c5ef9ecf5e8be4a94f868c897ad</url>
  <id>6d0ff5dd4b042c5ef9ecf5e8be4a94f868c897ad</id>
  <committed-date>2009-03-27T18:26:57-07:00</committed-date>
  <authored-date>2009-03-27T18:26:08-07:00</authored-date>
  <message>add client-side mvc classes</message>
  <tree>78c0d51b71168f8ff937899b140a8cc1be7d3c9c</tree>
  <committer>
    <name>Oliver Steele</name>
    <email>steele@osteele.com</email>
  </committer>
</commit>
