Hi avd,

There are too many options and variations to give a definitive answer
to this. As a basic starting point you could consider the following:

1) Create a model that represents your data in one or more Java
classes. If in doubt about what this means, a simple initial approach
is to create a Java class for each table in your database. These
classes can, for example, represent one table row with a matching
field for each table column. They are often called Data Transfer
Objects, or DTO's.
2) Think of your "pages" as different views of parts of this model. If
each page is a GWT widget of some kind, then keep a reference to the
model (or the top parent object of the model) in it.
3) When the user finished a page (say presses a "Next" button) copy
the values in the page's fields to the model (and do any validation
you need to do) then move on to the next page. Use,say, a
ClickListener added to the "next" button to do this.
4) When the user has finished entry and reviewed the final page, fire
an RPC call from the "Save" button's ClickListener that passes the
model object graph to an RPC servlet.
5) In the RemoteServiceServlet use the values from the model objects
to load JDBC PreparedStatement(s) that update the database tables.

regards
gregor


On Oct 14, 11:36 am, avd <[EMAIL PROTECTED]> wrote:
> hello sir,
>          i made five web pages using gwt for insert data into the
> database but i want to save data of  all fields of five pages after
> showing all inserted values at another web page with a button "save"
> and after click at the save button the whole data is stored into the
> database.Please solve my problem i'm thankful to u.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to