nihad640 / smartgwt

Automatically exported from code.google.com/p/smartgwt
0 stars 0 forks source link

Missing fetchData without parameters in DataSource in smartgwt version 2.5 #625

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello
I just switched to smartgwt 2.5 and find out slight
interface change in DataSource class
There is no fetchData() with no parameters now.
So i have to switch to parametrized version.
Is it OK to use fetchData(null, null) instead of fetchData()? 

Original issue reported on code.google.com by andrias...@googlemail.com on 1 Sep 2011 at 10:29

GoogleCodeExporter commented 9 years ago
Intentional change, fetchData() without a callback usually makes no sense, 
since fetchData() has no side effects.  The presence of a signature with no 
arguments was causing confusion.

For the very rare case of using fetchData() to populate caches (cacheAllData) 
*and* not needing a callback, yes you must pass null.

Original comment by smartgwt...@gmail.com on 1 Sep 2011 at 6:35