Issue With ZRM Data Store - Unnecessary GETs
The ZRM Data store called by UI Dojo widget appears to be making unnecessary GETs to the resource handler. I noticed this initially by watching the traffic flowing over the RMI Gateway. I saw three searchPerson service invocations every time I loaded or refreshed the index.html page.
One of the developers on the Project Zero forums pointed me to Firebug, a Firefox plug in, that lets you view and debug the client side processing. Sure enough, the console monitor showed the three calls:
Not a big deal for the demo, but unacceptable for this use case. Extra external calls are too expensive. Certainly, you don’t want extra calls on the onAdd() method. I’ve posted the suspected defect to the Project Zero bug tracking forum.
July 28th, 2009 at 5:22 pm
Here is the link to the support ticket: http://www.projectzero.org/bugzilla/show_bug.cgi?id=8965
The ZRM grid is being reimplemented for the Monza release. I’ll check whether this problem persists after that’s available.
In the meantime, support suggested a possible workaround. They directed me to make this change: edit the DataGrid.js in
/zero-repository/stable/expanded/zero/zero.dojo-1.0.0.4xxxx/public/zero/grid/DataGrid.js
and remove the reload() call in the postCreate method.
This change appears to have “fixed” the problem. The onList() is called just once and the grid still functions just fine.