First, thank you for booming the technology and making things much easier for all. I appreciate all what you did and doing… However, I am a new developer in the UI world and I need an advice on what product/version I should be using with below requirement:
GWT vs Smart GWT and Smart Client… Requirements:
1- Integrate a developed persistance layer which represents sets as business sets and records as business records responsible for validating fields, caching metadata and fetching or persisting data sets. They can be obtained using getDmoSet(xxx) methods and DmoSet.getDmo() . They are stored on the server based on the usersession id.. then, fetchDmoSet and SaveDmoSet. This persistance layer handlers all validations and responsible for fetching and saving data. It also recieves updates from UI based on Add, Update, Remove and Fetch actions.
2- GWT has a compiler for java code to be transformed to javascript and also have remote procedure calls. Is SmartGWT and SmartClient are extensions of GWT??? I am looking for the best performance possible.
Based on above facts and questions… What would be the best product to use?
Thank you very much and let me know if you have any question.
Thanks Again. One last question.. What is the relationship between GWT (not SmartGWT) and SmartClient.. Is SmartClient the core of both GWT and smartGWT? or SmartClient is based on GWT (not SmartGWT)? Thanks
SmartGWT is as fast as SmartClient. If anyone has evidence to the contrary, please provide the details along with a testcase.
SmartClient is the core JS library. It is not tied to GWT. SmartGWT is a very thin GWT wrapper over SmartClient which allows users to write client side code in Java (GWT), as opposed to Javascript.
With SmartGWT, you can use any of the inbuilt data protocols like JSON, XJSON, XML. You can also use any format of your liking and write the code to carry out the transform from data to records. GWT-RPC can also be used as the data-protocol when working with SmartGWT. (see the sticky at the top of this form).
For sever side validation, you just need to return the appropriate response to an operation indicating the error message and field in question. For example this can be as an xml or json response. The Showcase demo has examples of this.
If you’re using SmartGWT EE, all the validation rules that you specify when defining a datasource automatically get enforced on the server, in the same way that it would on the client without any extra work. If you have custom server side business rules for validation, then you can programatically set the error messages on a typesafe object on the server instead of having to convert it to the appropriate xml or json format as you’d need to do with SmartGWT (LGPL).