History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-3856
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: -- --
Assignee: Unassigned
Reporter: Philip Romanik
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

DHTML: clonemanager is null in datalistselector.lzx

Created: 06/Apr/07 02:13 PM   Updated: 06/Jun/07 10:29 AM
Component/s: Components - LZ
Affects Version/s: 4.0.0
Fix Version/s: 4.0.2, Legals

Time Tracking:
Not Specified

Severity: Minor
Fixed in Change#: 4,601
Runtime: N/A
Fix in hand: False


 Description  « Hide
An old example (from LPP-414) doesn't run in dhtml. If you click on the button,

$4_svs[0].cloneManager has no properties


<canvas>
<dataset name="ds">
    <data>
    </data>
</dataset>

    <simplelayout/>
        <list id="list1" datapath="ds:/data" height="100" dataoption="lazy">
            <textlistitem datapath="item" text="$path{'@text'}"/>
        </list>

        <button text="add">
            <method event= "onclick">
                var node = new LzDataElement("item", {text: "new item"});
                list1.datapath.p.appendChild(node);
                var view = list1._selector.getItemByData(node);
                list1.select(view);

                
            </method>
        </button>
</canvas>




 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Philip Romanik - 06/Apr/07 04:00 PM
Change 20070406-Philip-4 by Philip@Philip-DC on 2007-04-06 17:38:08 EDT
   in /cygdrive/f/laszlo/svn/src/svn/openlaszlo/branches/legals

Summary:

New Features:

Bugs Fixed: LPP-3856

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

Documentation:

Release Notes:

Details:
When testing a bugfix in dhtml (Change 20070406-maxcarlson-R), I received an err
or. Turns out the code isn't checking for null for cloneManager.


Tests:
See code in jira bug.

Files:
M lps/components/base/datalistselector.lzx

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070406-Philip-4.tar


Mamye Kratt - 02/May/07 11:48 AM
(legals build 4842)
Example runs.

Mamye Kratt - 06/Jun/07 10:22 AM
(legals build 5302)
Example now works in swf and dhtml.