Hi,
This might be a dead horse, but I haven't got the exact answer that I am looking for, so here goes again :)
I am prototyping an app that does all the fancy stuff that RIApps do and at the same time, are (mostly) coded in Java.
That's why I tried GWT first and then SmartGWT. The SmartGWT showcase talks of a load on demand tree widget here: (http://www.smartclient.com/smartgwt/showcase/#tree_databinding_ondemand)
This class (TreeGrid) accepts a whole DataSource object and thereby effects the loadOnDemand feature.
However, I'd like to pull data from a server and populate the model from that data. And finally pass that model to the TreeGrid using setData (instead of setDataSource()). And I'm able to do that correctly except for the "on-demand" part because the model is populated in it's entirety before it is passed to the UI widget.
So I looked further and in the SmartClient documentation (http://www.smartclient.com/devcenter/versions/5.5/smartclientSDK/isomorphic/system/reference/SmartClient_Reference.html) under Tree Data Binding, it is advised to use ResultTree instead of Tree to achieve this functionality.
However, ResultTree is a javascript class, not a java class; therefore I cannot use it in my GWT client-side java code.
So, what it seems to boil down to, is that if I need on-demand loading, either I use dynamic XML to produce an XML file on the fly to feed into the existing TreeGrid.setDataSource(...) api, or I resort to javascript.
In this thread (http://forums.smartclient.com/showthread.php?t=8818&highlight=java+classes), the writer has asked a similar question but he was suggested the SmartClientEE route which seems to provide good server side integration for this type of interaction. However, SmartClientXX veers away from the Java based GWT model and expects more javascript plumbing.
Is there a purely Java solution (client AND server) that allows me to load a tree on demand by populating a data structure programatically AND that can scale for large amounts of data?
SmartGWT -> SmartClient -> SmartClientEE seems to provide a better user experience, but it is certainly moving away from the Java approach that GWT proposes.
Thanks in advance!
Pankaj
This might be a dead horse, but I haven't got the exact answer that I am looking for, so here goes again :)
I am prototyping an app that does all the fancy stuff that RIApps do and at the same time, are (mostly) coded in Java.
That's why I tried GWT first and then SmartGWT. The SmartGWT showcase talks of a load on demand tree widget here: (http://www.smartclient.com/smartgwt/showcase/#tree_databinding_ondemand)
This class (TreeGrid) accepts a whole DataSource object and thereby effects the loadOnDemand feature.
However, I'd like to pull data from a server and populate the model from that data. And finally pass that model to the TreeGrid using setData (instead of setDataSource()). And I'm able to do that correctly except for the "on-demand" part because the model is populated in it's entirety before it is passed to the UI widget.
So I looked further and in the SmartClient documentation (http://www.smartclient.com/devcenter/versions/5.5/smartclientSDK/isomorphic/system/reference/SmartClient_Reference.html) under Tree Data Binding, it is advised to use ResultTree instead of Tree to achieve this functionality.
However, ResultTree is a javascript class, not a java class; therefore I cannot use it in my GWT client-side java code.
So, what it seems to boil down to, is that if I need on-demand loading, either I use dynamic XML to produce an XML file on the fly to feed into the existing TreeGrid.setDataSource(...) api, or I resort to javascript.
In this thread (http://forums.smartclient.com/showthread.php?t=8818&highlight=java+classes), the writer has asked a similar question but he was suggested the SmartClientEE route which seems to provide good server side integration for this type of interaction. However, SmartClientXX veers away from the Java based GWT model and expects more javascript plumbing.
Is there a purely Java solution (client AND server) that allows me to load a tree on demand by populating a data structure programatically AND that can scale for large amounts of data?
SmartGWT -> SmartClient -> SmartClientEE seems to provide a better user experience, but it is certainly moving away from the Java approach that GWT proposes.
Thanks in advance!
Pankaj
Comment