Hi All,
My current project uses smartGWT 2.4 in and I am very new to this API too.
I have a very basic doubt on how to bind form values to my java models.
Since I am from Struts/JSF background, there I directly use my java models in UI and when form is submitted, the user entered data is available in the model objects.
Ex : The form contains two fields to enter firstName and lastName. When form submitted, I would like to get those values in Person java object.
Is there a similar way yo achieve this in smartGWT?
Right now how I am doing is : Build a dynamic form (with all fields), when the form is submitted, iterate through the form data and build my custom model object and send it via RPC to server.
I have heard of DataSource, can you porvide me a sample example for this purpose?
It will be helpful if you point me to right direction.
Regards,
Satya
My current project uses smartGWT 2.4 in and I am very new to this API too.
I have a very basic doubt on how to bind form values to my java models.
Since I am from Struts/JSF background, there I directly use my java models in UI and when form is submitted, the user entered data is available in the model objects.
Ex : The form contains two fields to enter firstName and lastName. When form submitted, I would like to get those values in Person java object.
Is there a similar way yo achieve this in smartGWT?
Right now how I am doing is : Build a dynamic form (with all fields), when the form is submitted, iterate through the form data and build my custom model object and send it via RPC to server.
I have heard of DataSource, can you porvide me a sample example for this purpose?
It will be helpful if you point me to right direction.
Regards,
Satya
Comment