Change 20080313-Philip-8 by [EMAIL PROTECTED] on 2008-03-13 10:15:08 EDT
    in /cygdrive/f/laszlo/svn/src/svn/openlaszlo/branches/devildog
    for http://svn.openlaszlo.org/openlaszlo/branches/devildog

Summary: Databinding updates for swf9

New Features:

Bugs Fixed:

Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
Simple databinding tests now work. The most complicated one I have working is /t est/swf9/data-3.lzx. This comes from the docs and is modified since simplelayout isn't available yet. This example produces the same output in swf, dhtml, and s
wf9.

<canvas height="80" width="500" >
  <dataset name="myData">
    <myXML>
        <person show="simpsons">
          <firstName>Homer</firstName>
          <lastName>Simpson</lastName>
        </person>
        <person show="simpsons">
          <firstName>Marge</firstName>
          <lastName>Simpson</lastName>
        </person>
        <person show="simpsons">
          <firstName>Montgomery</firstName>
          <lastName>Burns</lastName>
        </person>
      </myXML>
  </dataset>

  <attribute name="yvalue" value="0"/>

  <view name="myTable">

    <view name="rowOfData" datapath="myData:/myXML[1]/person">
      <handler name="oninit">
        this.setY (canvas.yvalue);
        canvas.yvalue += 15;
      </handler>

      <text x="0" datapath="firstName/text()" />
      <text x="100" datapath="lastName/text()" />
      <text x="200" datapath="@show" />
    </view>
  </view>
</canvas>


Tests:
/test/swf9/data-{1,2,3}.lzx


Files:
A      test/swf9/data-1.lzx
A      test/swf9/data-2.lzx
A      test/swf9/data-3.lzx
A      test/swf9/data-4.lzx
A      test/swf9/data-5.lzx
A      test/swf9/data.xml
M      WEB-INF/lps/lfc/kernel/swf9/LzXMLTranslator.as
M      WEB-INF/lps/lfc/kernel/swf9/LzXMLParser.as
M      WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
M      WEB-INF/lps/lfc/core/LzNode.js
M      WEB-INF/lps/lfc/views/LaszloView.js
M      WEB-INF/lps/lfc/data/LzLazyReplicationManager.js
M      WEB-INF/lps/lfc/data/LzDataText.js
M      WEB-INF/lps/lfc/data/LzDataNode.js
M      WEB-INF/lps/lfc/data/LzDataProvider.js
M      WEB-INF/lps/lfc/data/LzDatapath.js
M      WEB-INF/lps/lfc/data/LzHTTPDatasource.js
M      WEB-INF/lps/lfc/data/LzParam.js
M      WEB-INF/lps/lfc/data/LzMiniNode.js
M      WEB-INF/lps/lfc/data/LzReplicationManager.js
M      WEB-INF/lps/lfc/data/LzDatapointer.js
M      WEB-INF/lps/lfc/data/LzDataRequest.js
M      WEB-INF/lps/lfc/data/LzDataElement.js
M      WEB-INF/lps/lfc/data/LzDataset.js
M      WEB-INF/lps/lfc/data/LzResizeReplicationManager.js

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20080313-Philip-8.tar

Reply via email to