Using SmartGWTEE 2.3 eval w/ IE7, in Eclipse.
Playing around w/ Built-In-DS demo project:
■ Used adminConsole to setup a connection to a MS SQL 2005 test db. Set it as the default.
■ Used the DS Generator utility to export a table as a .ds.xml DataSource definition file to the /war/builtinds/ds folder project. No primary key defined, if that matters (I'm only doing fetch at this time).
■ The listGrid in the Built-In-DS project now retrieves data and populates from the SQL 2005 table. Success, kinda.
If I scroll the table, it works, but it's very slow.
However, if I select a record, it provokes an IE error:
"Stop running this script? A script on this page is causing IE to run slowly. If it continues to run, your computer may become unresponsive." Yes/No
Whether I click "Yes" or "No," this error occurs with every record selection event.
The Developer Console does not appear to report any errors, e.g.
At this point, IE launches the alert dialog. But the Dev Console doesn't report anything additional.
So, a couple questions:
1) How to address this "slow script" issue directly?
2) More broadly, why is the listGrid performance so slow? How would a production SmartGWT setup differ from what I'm doing now? I.e., everything's running on my desktop PC now. In production, which parts get moved to a Java server? Can I expect to see a performance improvement?
Thanks!
Playing around w/ Built-In-DS demo project:
■ Used adminConsole to setup a connection to a MS SQL 2005 test db. Set it as the default.
■ Used the DS Generator utility to export a table as a .ds.xml DataSource definition file to the /war/builtinds/ds folder project. No primary key defined, if that matters (I'm only doing fetch at this time).
■ The listGrid in the Built-In-DS project now retrieves data and populates from the SQL 2005 table. Success, kinda.
If I scroll the table, it works, but it's very slow.
However, if I select a record, it provokes an IE error:
"Stop running this script? A script on this page is causing IE to run slowly. If it continues to run, your computer may become unresponsive." Yes/No
Whether I click "Yes" or "No," this error occurs with every record selection event.
The Developer Console does not appear to report any errors, e.g.
Code:
09:28:24.329:MDN7:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[GridBody ID:isc_ListGrid_1_body]' has handler: Canvas.prepareForDragging() 09:28:24.329:MDN7:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[ListGrid ID:isc_ListGrid_1]' has handler: Canvas.prepareForDragging() 09:28:24.329:MDN7:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[VStack ID:isc_VStack_0]' has handler: Canvas.prepareForDragging() 09:28:24.329:MDN7:DEBUG:EventHandler:Event 'prepareForDragging' bubbled to top 09:28:24.329:MDN7:DEBUG:EventHandler:No dragTarget, not dragging 09:28:24.345:MDN7:DEBUG:Selection:isc_ListGrid_1_selection:selectOnMouseDown: recordNum: 280
So, a couple questions:
1) How to address this "slow script" issue directly?
2) More broadly, why is the listGrid performance so slow? How would a production SmartGWT setup differ from what I'm doing now? I.e., everything's running on my desktop PC now. In production, which parts get moved to a Java server? Can I expect to see a performance improvement?
Thanks!
Comment