Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357401

Summary: Datagrid throws an exception in the eze$$setInitial because there is an undefined delagate
Product: z_Archived Reporter: Joseph Vincens <jvincens>
Component: EDTAssignee: Project Inbox <edt.widgets-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: blocker    
Priority: P3 CC: greer, hjiyong, svihovec, tww
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

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.