I have some questions, who can give me some advice? Thank you very much. 1>Generally, if we use the data widget of smartgwt(or gwt), such as the ListGrid, the communication manner what we use is ? rpc or dataSource.
2>If we use the dataSource(dataSource.setURL(“http:// localhost:xxxxxxxx/getList”)), does the smartgwt support the lazy Loading? Such as in a ListGrid, once the scroll bar move, can the data load automatically form the server? 3>if not support the lazy loading, how to do ? We write some cods in the server to implement it, or make some Pag(Previous,Next)? 4>If I write my code like the http://www.smartclient.com/smartgwt/showcase/#grid_databinding_lg_fields, and get the data by rpcService. it will be ok? Does it support lazy loading? or make some Page(Previous,Next) by myself. 5>If we submit a Form(such as “id”,”name”,”age”,”sex”), now I have two manners. a. by the BuildRequest JSONObject jsonObject = new JSONObject(); jsonObject.put(“name”,new JSONString(form.getValue(“name”).toString())); ….. request.sendRequest(json.toStirng(),…) b. by the rpc User user = new User(); user.setName(form.getValue(“name”).toString()) …… userService.add(user) …… Generally, which is the better? 6> when we add/delete a record, how the ListGrid automatically refresh? By what manners. Who can tell me the answer and give some example code? Thank for your help. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
