Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357401 - Datagrid throws an exception in the eze$$setInitial because there is an undefined delagate
Summary: Datagrid throws an exception in the eze$$setInitial because there is an undef...
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-12 13:48 EDT by Joseph Vincens CLA
Modified: 2017-02-23 14:15 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Vincens CLA 2011-09-12 13:48:55 EDT
When a new DataGrid is created the eze$$setInitial method is called in the constructor.
   eze$$setInitial() calls
        setShowButtonBar() calls
            render() calls 
                this.dataIsAvailable() calls 
                    this.dataLoader() throws undefined exception
dataLoader is a delagate
If you look at the DataGrid definition dataLoader is defined after the setShowButtonBar so dataLoader is not defined.

ShowButtonBar is defined as:
    showButtonBar boolean{@EglProperty, @VEProperty{default = "true"}} = true;
.......
    dataLoader DataLoader = fullyCached;



I looked at what RBD did. RBD did not obey the @EGLProperty when it set the deafult value for the showButtonBar object. RBD did 
        this.showButtonBar = true;
EDT is obeying the @EglProperty annotation on showButtonBar and is calling the setShowButtonBar(true) to set the default value. setShowButtonBar sets the value and then calls render() which causes the problem.
Comment 1 Huang Ji Yong CLA 2011-09-26 23:25:41 EDT
This problem does not exist in build 201109262101.
DataGrid is still broken due to several bugs such as
compile 355765
js runtime 357992
jsgen 358994,358996
Comment 2 Joseph Vincens CLA 2011-10-03 13:55:16 EDT
I no longer see this issue.