Author: max
Date: 2008-03-25 11:59:14 -0700 (Tue, 25 Mar 2008)
New Revision: 8400

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs
   openlaszlo/trunk/demos/amazon/amazon.lzx
   openlaszlo/trunk/demos/amazon/classlib.lzx
   openlaszlo/trunk/demos/amazon/recommendation.lzx
   openlaszlo/trunk/demos/amazon/shoppinglist.lzx
   openlaszlo/trunk/demos/calendar/day.lzx
   openlaszlo/trunk/demos/lzpixmobile/classes/clipboardinterior.lzx
   openlaszlo/trunk/demos/lzpixmobile/classes/photocollection.lzx
   openlaszlo/trunk/lps/components/base/basecombobox.lzx
   openlaszlo/trunk/lps/components/base/basecomponent.lzx
   openlaszlo/trunk/lps/components/base/basescrollbar.lzx
Log:
Change 20080325-maxcarlson-5 by [EMAIL PROTECTED] on 2008-03-25 11:42:41 PDT
    in /Users/maxcarlson/openlaszlo/trunk-clean
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: UPDATED AGAIN: Update Amazon demo for new AWS version, speed up 
calendar

New Features:

Bugs Fixed: LPP-5667 - Update Amazon demo with new API

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

Documentation:

Release Notes:

Details: LaszloView.lzs - Remove deprecated getAttribute() call.

basescrollbar.lzx - Fix deprecated setVisible() calls.

basecomponent.lzx - Ensure events have listeners before calling sendEvent()

basecombobox.lzx - Fix deprecated setVisible() calls.

shoppinglist.lzx - Update datapaths to use AWS 4 response style.

recommendation.lzx - Update datapaths, requests to use AWS 4 response style.

amazon.lzx - Use a single base URL that contains the API key.  Update datapaths 
to use AWS 4 response style.  Fix deprecated setVisible() calls.

classlib.lzx - Fix deprecated setVisible() calls.

day.lzx - Halve calendar startup time by deferring scrollbar instantiation 
until the day is expanded.

photocollection.lzx - Fix bad classname lookup

clipboardinterior.lzx - Fix bad classname lookup.

Tests: Amazon and calendar run as before.  lzpixmobile won't compile on TOT due 
to another bug.



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs       2008-03-25 
18:51:57 UTC (rev 8399)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs       2008-03-25 
18:59:14 UTC (rev 8400)
@@ -2249,8 +2249,8 @@
   * @return Boolean: boolean indicating whether or not the point lies within 
the view
   */
 function containsPt( x,y ) {
-   return (((this.getAttribute("height")>= y) && (y >= 0)) &&
-                ((this.getAttribute("width")>= x) && (x >= 0)));
+   return (((this.height>= y) && (y >= 0)) &&
+                ((this.width>= x) && (x >= 0)));
 }
 
 /**

Modified: openlaszlo/trunk/demos/amazon/amazon.lzx
===================================================================
--- openlaszlo/trunk/demos/amazon/amazon.lzx    2008-03-25 18:51:57 UTC (rev 
8399)
+++ openlaszlo/trunk/demos/amazon/amazon.lzx    2008-03-25 18:59:14 UTC (rev 
8400)
@@ -9,14 +9,13 @@
     <include href="address.lzx"/>
     <include href="creditcard.lzx"/>
     <include href="recommendation.lzx"/>
-    <attribute name="developerToken" value="D3VSV378UEERZB" type="string" />
+    <attribute name="baseURL" 
value="http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&amp;SubscriptionId=1ZJXY3M2VMFG0W1ZF1R2&amp;AssociateTag=webservices";
 type="string" />
 
     <!-- dataset holding customer's recommendations -->
-    <dataset name="dsRecommend" request="false" type="http" 
src="http://xml.amazon.com/onca/xml3"/>
+    <dataset name="dsRecommend" request="false" type="http"/>
 
     <!-- dataset to search items by keywoard -->
-    <dataset name="dsKeyword" type="http" request="false" 
-             src="http://xml.amazon.com/onca/xml3"/>
+    <dataset name="dsKeyword" type="http" request="false"/>
 
     <datapointer xpath="dsKeyword:/*">
         <handler name="ondata">
@@ -36,8 +35,8 @@
 
     <datapointer xpath="dsAsin:/*">
         <handler name="ondata">
-            recommend.setVisible( false );
-            cdinfo.setVisible( true );
+            recommend.setAttribute('visible', false );
+            cdinfo.setAttribute('visible', true );
             cdinfo.bringToFront();
             infoLoader.hide();
         </handler>
@@ -127,21 +126,21 @@
                              matching the keyword search -->
                         <view name="searchResults" 
                               width="${parent.width}">
-                            <datapath xpath="dsKeyword:/ProductInfo/Details" 
pooling="true" />
+                            <datapath 
xpath="dsKeyword:/ItemSearchResponse/Items/Item" pooling="true" />
                             <view width="${parent.width}" clickable="true"
                                 onmouseover="setBGColor(0xFFFFFF)"
                                 onmouseout="setBGColor(0xCAD0EC)">
                                 <simplelayout axis="y"/>
-                                <text x="4" font="lztahoe8,Arial,Helvetica" 
datapath="ProductName/text()" width="${parent.width-6}" resize="false"/>
-                                <text x="4" font="lztahoe8,Arial,Helvetica" 
datapath="Artists/Artist[1]/text()" width="${parent.width-6}" resize="false"/>
+                                <text x="4" font="lztahoe8,Arial,Helvetica" 
datapath="ItemAttributes/Title/text()" width="${parent.width-6}" 
resize="false"/>
+                                <text x="4" font="lztahoe8,Arial,Helvetica" 
datapath="ItemAttributes/Artist[1]/text()" width="${parent.width-6}" 
resize="false"/>
 
                                 <!-- When one item is clicked, a request is 
sent to Amazon for deatailed informations about the item -->
                                 <handler name="onclick">
                                     <![CDATA[
-                                        var dsAsin=canvas.datasets.dsAsin;
-                                        var qsAsin = 
"t=webservices&dev-t="+canvas.developerToken+"&AsinSearch="+parent.datapath.xpathQuery("Asin/text()")+"&mode=music&type=heavy&page=1&f=xml";
                                         infoLoader.show();
-                                        dsAsin.setQueryString(qsAsin);
+                                        var asin = 
parent.datapath.xpathQuery("ASIN/text()");
+                                        var url = canvas.baseURL + 
"&Operation=ItemLookup&ItemId=" + asin + 
"&ResponseGroup=ItemAttributes,OfferSummary,Images,Tracks,Reviews,EditorialReview";
+                                        dsAsin.setSrc(url);
                                         dsAsin.doRequest();
                                     ]]>
                                 </handler>
@@ -177,7 +176,7 @@
 
                 <view id="cdinfo" x="223" y="10" width="${parent.width-2*x}" 
                       height="${parent.height-y}" 
-                      datapath="dsAsin:/ProductInfo/Details" 
+                      datapath="dsAsin:/ItemLookupResponse/Items/Item" 
                       bgcolor="#CAD0EC" font="Arial,Helvetica" fontsize="11">
 
                     <simplelayout axis="y" spacing="16"/>
@@ -186,15 +185,15 @@
                         onmouseover="setResourceNumber(2);"
                         onmouseout="setResourceNumber(1);"
                         onmouseup="setResourceNumber(1);"
-                        onclick="recommend.setVisible( true); 
cdinfo.setVisible( false ); recommend.bringToFront();"/>
+                        onclick="recommend.setAttribute('visible', true); 
cdinfo.setAttribute('visible', false ); recommend.bringToFront();"/>
 
 
                     <view name="info" width="${parent.width}" height="136">
 
                         <simplelayout axis="x" spacing="10"/>
                         <!-- Display CD cover: Image is draggable into either 
the shopping cart or the wish list -->
-                        <view id="cover" datapath="ImageUrlMedium/text()"
-                            
onmousedown="dragger.start(parent.parent.datapath.xpathQuery('ImageUrlSmall/text()'))"
+                        <view id="cover" datapath="SmallImage/URL/text()"
+                            
onmousedown="dragger.start(parent.parent.datapath.xpathQuery('SmallImage/URL/text()'))"
                             onmouseup="dragger.stop(); 
itemDropped(parent.parent.datapath);"
                             ondblclick="cart.addItem(parent.parent.datapath)">
                             <attribute name="source" value="${this.data}"/>
@@ -208,13 +207,13 @@
                         </view>
 
                         <view width="${parent.width-cover.width}">
-                            <text datapath="ProductName/text()" 
width="${parent.width}" fontstyle="bold" fontsize="18" fgcolor="#666699"/>
-                            <text y="20" datapath="Artists/Artist[1]/text()" 
width="${parent.width}" fontstyle="bold" fontsize="12" fgcolor="#666699"/>
-                            <text y="40" fgcolor="#666699">Label:</text><text 
x="90" y="40" datapath="Manufacturer/text()" width="${parent.width}" 
fgcolor="#666699"/>
-                            <text y="55" fgcolor="#666699">Realease 
Date:</text><text x="90" y="55" datapath="ReleaseDate/text()" 
width="${parent.width}" fgcolor="#666699"/>
+                            <text datapath="ItemAttributes/Title/text()" 
width="${parent.width}" fontstyle="bold" fontsize="18" fgcolor="#666699"/>
+                            <text y="20" 
datapath="ItemAttributes/Artist[1]/text()" width="${parent.width}" 
fontstyle="bold" fontsize="12" fgcolor="#666699"/>
+                            <text y="40" fgcolor="#666699">Label:</text><text 
x="90" y="40" datapath="ItemAttributes/Manufacturer/text()" 
width="${parent.width}" fgcolor="#666699"/>
+                            <text y="55" fgcolor="#666699">Release 
Date:</text><text x="90" y="55" datapath="ItemAttributes/ReleaseDate/text()" 
width="${parent.width}" fgcolor="#666699"/>
                             <text y="70" 
fgcolor="#666699">Availability:</text><text x="90" y="70" 
datapath="Availability/text()" width="${parent.width}" fgcolor="#666699"/>
-                            <text y="87" fgcolor="#666699" fontsize="14">List 
Price:</text><text x="90" y="87" datapath="ListPrice/text()" 
width="${parent.width}" fontsize="14" fgcolor="#666699"/>
-                            <text y="105" fgcolor="#666699" fontstyle="bold" 
fontsize="16">Our Price:</text><text x="90" y="105" datapath="OurPrice/text()" 
width="${parent.width}" fontstyle="bold" fontsize="16" fgcolor="#666699"/>
+                            <text y="87" fgcolor="#666699" fontsize="14">List 
Price:</text><text x="90" y="87" 
datapath="ItemAttributes/ListPrice/FormattedPrice/text()" 
width="${parent.width}" fontsize="14" fgcolor="#666699"/>
+                            <text y="105" fgcolor="#666699" fontstyle="bold" 
fontsize="16">Our Price:</text><text x="90" y="105" 
datapath="OfferSummary/LowestNewPrice/FormattedPrice/text()" 
width="${parent.width}" fontstyle="bold" fontsize="16" fgcolor="#666699"/>
                             <mouseview resource="cart_butt" x="214" y="105" 
width="54" height="18"
                                 
onclick="cart.addItem(parent.parent.parent.datapath)"/>
                             <mouseview resource="wish_butt" x="270" y="105"  
width="54" height="18"
@@ -228,7 +227,7 @@
 
                         <tabpanel name="editorialTab" label="Editorial Review" 
oninit="this.setAnnotation( '-' );">
                             <text x="8" y="8"  id="pokeme"
-                                  datapath="ProductDescription/text()" 
+                                  
datapath="EditorialReviews/EditorialReview[1]/Content/text()" 
                                   multiline="true" width="${parent.width-16}">
                                 <method name="applyData" args="t">
                                     <![CDATA[
@@ -245,27 +244,36 @@
                         <tabpanel label="Tracks">
 
                             <view width="${parent.width}" 
height="${parent.height-20}"
-                                  datapath="Tracks" clip="true">
-                                <handler name="ondata">
-                                    var dp = this.datapath.dupePointer();
-                                    dp.selectChild();
-                                    var numberTracks = countNodesByName( dp, 
'Track' );
-                                    numberTracks = (numberTracks == 0) ? "-" : 
numberTracks;
-                                    this.parent.setAnnotation( numberTracks );
-                                </handler>
+                                  clip="true">
+                                <view datapath="Tracks" width="100%">
+                                    <handler name="ondata">
+                                        <![CDATA[
+                                        var discs = 
this.datapath.xpathQuery('Disc')
+                                        if (! discs) return;
+                                        if (! discs.length) discs = [ discs ];
+                                        var tracks = 0;
+                                        for (i in discs) {
+                                            var n = discs[i];
+                                            if (n && n.childNodes) tracks += 
n.childNodes.length;
+                                        }
+                                        parent.parent.setAnnotation(tracks);
+                                        ]]>
+                                    </handler>
+                                    <simplelayout/>  
+                                    <view datapath="Disc" width="100%">
+                                        <simplelayout/>
+                                        <text name="discnum"/>
+                                        <handler name="ondata">
+                                            this.discnum.setText('Disc ' + 
this.datapath.xpathQuery('@Number'));
+                                        </handler>
 
-                                <view y="8" x="8" width="${parent.width}">
-                                    <simplelayout axis="y"/>
-                                    <!-- Repeated view displaying the list of 
tracks -->
-                                    <view width="${parent.width}">
-                                        <attribute name="trackid" 
type="string" value=""/>
-                                        <handler name="onclonenumber" args="n">
-                                            this.trackid = n+1 + '.';
-                                        </handler>
-                                        <datapath xpath="Track" pooling="true" 
/>
-                                        <simplelayout axis="x" spacing="4"/>
-                                        <text name="tid" 
label="${parent.trackid}" width="20"/>
-                                        <text datapath="text()" 
width="${parent.width}"/>
+                                        <!-- Repeated view displaying the list 
of tracks -->
+                                        <view width="${parent.width}">
+                                            <datapath xpath="Track" 
pooling="true" />
+                                            <simplelayout axis="x" 
spacing="4"/>
+                                            <text name="tid" 
datapath="@Number" width="20"/>
+                                            <text datapath="text()" 
width="${parent.width}"/>
+                                        </view>
                                     </view>
                                 </view>
                                 <scrollbar/>
@@ -279,19 +287,19 @@
                                 <view width="${parent.width}">
                                     <view x="8" y="8" 
width="${parent.width-50}"
                                             id="customerReviewsContainer">
-                                        <datapath xpath="Reviews" 
pooling="true"/>
+                                        <datapath xpath="CustomerReviews" 
pooling="true"/>
                                         <simplelayout axis="y" spacing="0"/>
 
                                         <handler name="ondata">
                                             var dp = 
this.datapath.dupePointer();
                                             dp.selectChild();
-                                            var numberReviews = 
countNodesByName( dp, 'CustomerReview' );
+                                            var numberReviews = 
countNodesByName( dp, 'Review' );
                                             
this.parent.parent.parent.setAnnotation( numberReviews );
                                         </handler>
 
 
                                         <!-- Repeated view displaying the list 
of customer review -->
-                                        <view datapath="CustomerReview" 
width="${parent.width}"
+                                        <view datapath="Review" 
width="${parent.width}"
                                                 name="replicatedReviews">
                                             <simplelayout axis="y" 
spacing="4"/>
                                             <view width="${parent.width}" 
@@ -307,7 +315,7 @@
                                             <!-- View displaying the body of 
the review when its title is clicked !-->
                                             <view name="detail" height="0" 
width="${parent.width}" clip="true">
                                             <view name="comment" 
width="${parent.width}">
-                                                <text x="10" 
datapath="Comment/text()" multiline="true" width="${parent.width}"/>
+                                                <text x="10" 
datapath="Content/text()" multiline="true" width="${parent.width}"/>
                                             </view>
                                             </view>
                                         </view>
@@ -331,7 +339,6 @@
                 <inputtext name="searchKey" x="20" y="3" fontsize="11">
                     <handler name="onkeydown" args="k">
                         if (k==13) {
-Debug.write("Searching");
                             parent.search();
                         }
                     </handler>
@@ -340,9 +347,9 @@
                     <![CDATA[
                     searchLoader.show();
                     main.animate("x", main.open_posX, 0, false);
-                    var dsKeyword=canvas.datasets.dsKeyword;
-                    var qsKeyword = 
"t=webservices&dev-t="+canvas.developerToken+"&KeywordSearch="+escape(searchKey.getText())+"&mode=music&type=lite&page=1&f=xml";
-                    dsKeyword.setQueryString(qsKeyword);
+                    var search = escape(searchKey.getText());
+                    var url = canvas.baseURL + 
"&Operation=ItemSearch&Keywords=" + search + 
"&SearchIndex=Music&ResponseGroup=ItemAttributes";
+                    dsKeyword.setSrc(url);
                     dsKeyword.doRequest();
                     ]]>
                 </method>

Modified: openlaszlo/trunk/demos/amazon/classlib.lzx
===================================================================
--- openlaszlo/trunk/demos/amazon/classlib.lzx  2008-03-25 18:51:57 UTC (rev 
8399)
+++ openlaszlo/trunk/demos/amazon/classlib.lzx  2008-03-25 18:59:14 UTC (rev 
8400)
@@ -82,7 +82,7 @@
                                            -classroot.width );
                     classroot.panelDragger.apply();
                     if(classroot.container.content.visible != true){
-                        classroot.container.content.setVisible(true);
+                        classroot.container.content.setAttribute('visible', 
true);
                     }
                 </handler>
                 <handler name="onmouseup">
@@ -91,7 +91,7 @@
                         // User has just closed the tab by dragging the panel
                         // manually.
                         classroot.opened = 'false';
-                        classroot.container.content.setVisible(false);
+                        classroot.container.content.setAttribute('visible', 
false);
                     }
                     
parent.tabButton.setResourceNumber(classroot.opened=='true'?4:1);
                     classroot.panelDragger.remove();
@@ -106,7 +106,7 @@
         </view>
 
         <method name="open">
-            this.container.content.setVisible(true);
+            this.container.content.setAttribute('visible', true);
             this.animate("width",openingsize,333,false);
         </method>
 
@@ -120,7 +120,7 @@
         </method>
 
         <method name="hidecontent">
-            this.container.content.setVisible(false);
+            this.container.content.setAttribute('visible', false);
         </method>
 
         <!-- Nudge the tab left then right to give feedback that something's
@@ -203,10 +203,10 @@
            options="ignorelayout">
         <method name="show">
             this.bringToFront();
-            this.setVisible( true );
+            this.setAttribute('visible',  true );
         </method>
         <method name="hide">
-            this.setVisible( false );
+            this.setAttribute('visible',  false );
         </method>
     </class>
 

Modified: openlaszlo/trunk/demos/amazon/recommendation.lzx
===================================================================
--- openlaszlo/trunk/demos/amazon/recommendation.lzx    2008-03-25 18:51:57 UTC 
(rev 8399)
+++ openlaszlo/trunk/demos/amazon/recommendation.lzx    2008-03-25 18:59:14 UTC 
(rev 8400)
@@ -3,7 +3,7 @@
     <class name="cdview" width="${parent.width}" height="82">
 
         <resizelayout axis="x" spacing="8"/>
-        <view name="cover" datapath="ImageUrlSmall/text()" y="7" width="50" 
height="50" clip="true"
+        <view name="cover" datapath="SmallImage/URL/text()" y="7" width="50" 
height="50" clip="true"
             onmouseover="dragsmall.display(this, 
this.datapath.xpathQuery('text()'))"
             onmouseout="dragsmall.hide()"
             onmousedown="dragsmall.start()"
@@ -21,11 +21,11 @@
 
         <view  y="7" options="releasetolayout" name="info">
             <simplelayout axis="y" spacing="-3"/>
-            <text fontsize="12" fontstyle="bold" datapath="ProductName/text()"
+            <text fontsize="12" fontstyle="bold" 
datapath="ItemAttributes/Title/text()"
                   visible="${ width &gt; 40 }"
                   multiline="true" name="title"
                   width="${parent.width - 15}" fgcolor="#666699"/>
-            <text datapath="Artists/Artist[1]/text()" 
+            <text datapath="ItemAttributes/Artist[1]/text()" 
                   visible="${ width &lt; parent.width - 5 &amp;&amp;
                               parent.title.height &lt;40 }"
                   resize="true"
@@ -36,7 +36,7 @@
                   fgcolor="#666699">
                 <simplelayout axis="x" spacing="4"/>
                 <text>Our Price:</text>
-                <text datapath="OurPrice/text()" width="50"/>
+                <text 
datapath="OfferSummary/LowestNewPrice/FormattedPrice/text()" width="50"/>
             </view>
         </view>
         <view y="${classroot.cover.height + 8}" 
@@ -57,9 +57,9 @@
             // Get more information about the current CD.
             <![CDATA[
                 infoLoader.show();
-                var dsAsin=canvas.datasets.dsAsin;
-                var qsAsin = 
"t=webservices&dev-t="+canvas.developerToken+"&AsinSearch="+this.datapath.xpathQuery("Asin/text()")+"&mode=music&type=heavy&page=1&f=xml";
-                dsAsin.setQueryString(qsAsin);
+                var asin = this.datapath.xpathQuery("ASIN/text()");
+                var url = canvas.baseURL + "&Operation=ItemLookup&ItemId=" + 
asin + 
"&ResponseGroup=ItemAttributes,OfferSummary,Images,Tracks,Reviews,EditorialReview";
+                dsAsin.setSrc(url);
                 dsAsin.doRequest();
             ]]>
 
@@ -74,9 +74,8 @@
 
         <method name="getRecommendations">
             <![CDATA[
-                var dsRecommend=canvas.datasets.dsRecommend;
-                var qsRecommend = 
"t=webservices&dev-t="+canvas.developerToken+"&AsinSearch=B00005YW4H,B00006IX86,B000005J56,B00006AAJF,B0002RUPH4,B00006IX6E,B000069HKH,B00006JP29,B000000QFU,B000002L2Z&mode=music&type=lite&page=1&f=xml";
-                dsRecommend.setQueryString(qsRecommend);
+                var url = canvas.baseURL + 
"&Operation=ItemLookup&ItemId=B00005YW4H,B00006IX86,B000005J56,B00006AAJF,B0002RUPH4,B00006IX6E,B000069HKH,B00006JP29,B000000QFU,B000002L2Z&ResponseGroup=ItemAttributes,OfferSummary,Images";
+                dsRecommend.setSrc(url);
                 dsRecommend.doRequest();
             ]]>
         </method>
@@ -89,12 +88,12 @@
             <view options="releasetolayout">
                 <simplelayout axis="y" spacing="1"/>
                 <!-- Repeated view displaying the list of items matching the 
keyword search -->
-                <cdview datapath="dsRecommend:/ProductInfo/Details[1-5]"/>
+                <cdview 
datapath="dsRecommend:/ItemLookupResponse/Items/Item[1-5]"/>
             </view>
             <view options="releasetolayout">
                 <simplelayout axis="y" spacing="1"/>
                 <!-- Repeated view displaying the list of items matching the 
keyword search -->
-                <cdview datapath="dsRecommend:/ProductInfo/Details[6-10]"/>
+                <cdview 
datapath="dsRecommend:/ItemLookupResponse/Items/Item[6-10]"/>
             </view>
         </view>
 
@@ -102,7 +101,7 @@
 
 </library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <!-- @LZX_VERSION@                                                         -->

Modified: openlaszlo/trunk/demos/amazon/shoppinglist.lzx
===================================================================
--- openlaszlo/trunk/demos/amazon/shoppinglist.lzx      2008-03-25 18:51:57 UTC 
(rev 8399)
+++ openlaszlo/trunk/demos/amazon/shoppinglist.lzx      2008-03-25 18:59:14 UTC 
(rev 8400)
@@ -10,9 +10,9 @@
             <simplelayout axis="y" spacing="6"/>
             <!-- Repeated view displaying list of items in the shopping cart 
-->
             <view x="12" width="${parent.width}">
-                <datapath xpath="Details" pooling="true"/>
+                <datapath xpath="Item" pooling="true"/>
                 <simplelayout axis="x" spacing="6"/>
-                <view datapath="ImageUrlSmall/text()" width="50" height="50" 
clip="true"
+                <view datapath="SmallImage/URL/text()" width="50" height="50" 
clip="true"
                     onmouseover="dragsmall.display(this, 
this.datapath.getNodeText());"
                     onmouseout="dragsmall.hide();"
                     onmousedown="dragsmall.start();"
@@ -22,12 +22,12 @@
 
                 <view width="$once{parent.width}" fgcolor="#666699">
                     <simplelayout axis="y"/>
-                    <text fontsize="12" fontstyle="bold" 
datapath="ProductName/text()" width="${parent.width}"/>
-                    <text datapath="Artists/Artist[1]/text()" 
width="${parent.width}"/>
+                    <text fontsize="12" fontstyle="bold" 
datapath="ItemAttributes/Title/text()" width="${parent.width}"/>
+                    <text datapath="ItemAttributes/Artist[1]/text()" 
width="${parent.width}"/>
                     <view fontsize="12" fontstyle="bold">
                         <simplelayout axis="x" spacing="4"/>
                         <text>Our Price:</text>
-                        <text datapath="OurPrice/text()" 
width="${parent.width}"/>
+                        <text 
datapath="OfferSummary/LowestNewPrice/FormattedPrice/text()" 
width="${parent.width}"/>
                     </view>
                 </view>
 
@@ -51,19 +51,19 @@
         <method name="addItem" args="dpath">
             this.panel_to_nudge.nudge();
 
-            this.setAttribute("total", 
total+parseFloat(dpath.xpathQuery("OurPrice/text()").substring(1)));
+            this.setAttribute("total", 
total+parseFloat(dpath.xpathQuery("OfferSummary/LowestNewPrice/FormattedPrice/text()").substring(1)));
             datapath.addNodeFromPointer(dpath);
         </method>
 
         <method name="removeItem" args="dpath">
-            this.setAttribute("total", 
total-parseFloat(dpath.xpathQuery("OurPrice/text()").substring(1)));
+            this.setAttribute("total", 
total-parseFloat(dpath.xpathQuery("OfferSummary/LowestNewPrice/FormattedPrice/text()").substring(1)));
             dpath.deleteNode();
         </method>
 
     </class>
 </library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <!-- @LZX_VERSION@                                                         -->

Modified: openlaszlo/trunk/demos/calendar/day.lzx
===================================================================
--- openlaszlo/trunk/demos/calendar/day.lzx     2008-03-25 18:51:57 UTC (rev 
8399)
+++ openlaszlo/trunk/demos/calendar/day.lzx     2008-03-25 18:59:14 UTC (rev 
8400)
@@ -105,7 +105,9 @@
                     </view>
                 </view>
 
-                <scrollbar visible="${scrollable}"/>
+                <state apply="${classroot.opened}">
+                    <scrollbar visible="${scrollable}"/>
+                </state>
                 <view name="scrollview" visible="false">
                     <state name="scrollState" apply="false" 
                            onapply="parent.bringToFront()">

Modified: openlaszlo/trunk/demos/lzpixmobile/classes/clipboardinterior.lzx
===================================================================
--- openlaszlo/trunk/demos/lzpixmobile/classes/clipboardinterior.lzx    
2008-03-25 18:51:57 UTC (rev 8399)
+++ openlaszlo/trunk/demos/lzpixmobile/classes/clipboardinterior.lzx    
2008-03-25 18:59:14 UTC (rev 8400)
@@ -1,5 +1,5 @@
 <photocollection name="interior" bgcolor="0xf0f0f0" clip="true"
-                 photoclass="clipboardphoto" clickable="true">
+                 photoclass="lz.clipboardphoto" clickable="true">
     <handler name="oninit">
         LzTrack.register( this , 'photos' );
     </handler>

Modified: openlaszlo/trunk/demos/lzpixmobile/classes/photocollection.lzx
===================================================================
--- openlaszlo/trunk/demos/lzpixmobile/classes/photocollection.lzx      
2008-03-25 18:51:57 UTC (rev 8399)
+++ openlaszlo/trunk/demos/lzpixmobile/classes/photocollection.lzx      
2008-03-25 18:59:14 UTC (rev 8400)
@@ -6,7 +6,7 @@
 <library>
     <class name="photocollection">
 
-        <attribute name="photoclass" value="photo" when="once"/>
+        <attribute name="photoclass" value="lz.photo" when="once"/>
 
         <attribute name="activephotos" value="$once{ [] }"/>
 

Modified: openlaszlo/trunk/lps/components/base/basecombobox.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basecombobox.lzx       2008-03-25 
18:51:57 UTC (rev 8399)
+++ openlaszlo/trunk/lps/components/base/basecombobox.lzx       2008-03-25 
18:59:14 UTC (rev 8400)
@@ -381,7 +381,7 @@
 
             // reassign classname now that the instance is inited
             this.setItemclassname(this.itemclassname);
-            cblist.setVisible(false);
+            cblist.setAttribute('visible', false);
          </method>
 
         <!--- @keywords private -->
@@ -509,7 +509,7 @@
                 LzModeManager.makeModal( this );
 
                 this.cblist.bringToFront();
-                this.cblist.setVisible(true);
+                this.cblist.setAttribute('visible', true);
                 LzFocus.setFocus(this.cblist, withkey);
 
                 this.isopen = true;
@@ -519,7 +519,7 @@
                 this.isopen = false;
 
                 LzModeManager.release( this );
-                this.cblist.setVisible(false);
+                this.cblist.setAttribute('visible', false);
                 if (this['onisopen']) this.onisopen.sendEvent(false);
                 if ( LzFocus.getFocus() == this.cblist ) {
                     if (!editable) {
@@ -649,7 +649,7 @@
 
         <!--- @keywords private -->
         <method name="_showEnabled">
-           interior.cbtext.setVisible(this._enabled);
+           interior.cbtext.setAttribute('visible', this._enabled);
             if (!this._enabled) {
                 if (interior._dsblfield == null) {
                     var t = new LzText(interior,
@@ -657,11 +657,11 @@
                           width:interior.width, height:interior.height,
                             fgcolor:this['style'] ? 
this.style.textdisabledcolor : null});
                 } else {
-                   interior._dsblfield.setVisible(true);
+                   interior._dsblfield.setAttribute('visible', true);
                 }
                 interior._dsblfield.setText(this.getText());
             } else {
-                if (interior._dsblfield) interior._dsblfield.setVisible(false);
+                if (interior._dsblfield) 
interior._dsblfield.setAttribute('visible', false);
             }
         </method>
 

Modified: openlaszlo/trunk/lps/components/base/basecomponent.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basecomponent.lzx      2008-03-25 
18:51:57 UTC (rev 8399)
+++ openlaszlo/trunk/lps/components/base/basecomponent.lzx      2008-03-25 
18:59:14 UTC (rev 8400)
@@ -81,10 +81,10 @@
             var newFocusable = (this._enabled && this._focusable);
             if (newFocusable != this.focusable) {
                 this.focusable = newFocusable;
-                if (this.onfocusable) this.onfocusable.sendEvent();
+                if (this.onfocusable.ready) this.onfocusable.sendEvent();
             }
             if (_initcomplete) _showEnabled();
-            if (this.on_enabled) this.on_enabled.sendEvent();
+            if (this.on_enabled.ready) this.on_enabled.sendEvent();
         ]]>
         </method>
 
@@ -93,7 +93,7 @@
             this._focusable = isFocusable;
             if (this.enabled) {
                 this.focusable = this._focusable;
-                if (this.onfocusable) this.onfocusable.sendEvent();
+                if (this.onfocusable.ready) this.onfocusable.sendEvent();
             } else {
                 this.focusable = false;
             }
@@ -174,7 +174,7 @@
             }
 
             this.isdefault = def;
-            if ( this.onisdefault ){
+            if ( this.onisdefault.ready ){
                 this.onisdefault.sendEvent( def );
             }
         </method>
@@ -280,7 +280,7 @@
 
             this.style = s;
             _usestyle();
-            if (this.onstyle) this.onstyle.sendEvent(this.style);
+            if (this.onstyle.ready) this.onstyle.sendEvent(this.style);
             ]]>
         </method>
 

Modified: openlaszlo/trunk/lps/components/base/basescrollbar.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basescrollbar.lzx      2008-03-25 
18:51:57 UTC (rev 8399)
+++ openlaszlo/trunk/lps/components/base/basescrollbar.lzx      2008-03-25 
18:59:14 UTC (rev 8400)
@@ -341,7 +341,7 @@
         <method name="_showEnabled">
                 if (!_enabled) this.thumb.setAttribute(sizeAxis, 0);
                 else updateThumbSize();
-                this.thumb.setVisible(_enabled);
+                this.thumb.setAttribute('visible', _enabled);
                 if (scrolltarget) this.scrolltarget.setAttribute(scrollattr, 
0);
         </method>
 


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to