Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to bind form values to models

    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
    Last edited by satyakatti; 22 Jan 2011, 11:41.

    #2
    Hello Satyakatti,

    The best thing to do is start by reading the QuickStart Guide to get an overview of the system, then come back to the forums if you still have specific questions.

    Comment


      #3
      Hi,

      You might also like to take a look at this post -> http://uptick.com.au/content/crud-gwt-gwtp-smartgwt-and-jpa re how to implement the four basic functions of persistent storage when working with GWT, gwt-platform's MVP and dispatch components, smartGWT and JPA.

      Cheers
      Rob

      Comment

      Working...
      X