I think that you may be mixing things up a bit. RPC doesn't use true html forms. So what would look to a user to be a form in a typical GWT application would just be a group of input html elements and a button. The button doesnt submit a form, it has a click handler. The handler makes an RPC call to passing the user entered data to the server.
GWT does have a FormPanel widget thought which allows you to make true HTML forms. Those can submit to any webserver configured to handle the http request. I think that these kinds of forms are included to support legacy back ends and to do things that GWT RPC cant like, oh say file upload. ymmv, i'm still pretty green with GWT but i'm coming up to speed. Trevis On Jul 29, 1:34 pm, Jeremiah Moses <[email protected]> wrote: > thanks for the response ... i have not made many of the forms made have been > just playing around with gwt for the last couple of weeks ... been using > simple forms ... and not got to point of writing a form handler yet ... > been trying to find some example ... to make my job a bit easier ... > specialy if it has maybe even a RPC implementation for a form ... > > thanks > jeremiah > > On Wed, Jul 29, 2009 at 10:44 PM, Trevis <[email protected]> wrote: > > > ...calling setName("foo") on things like TextBox will cause GWT to > > render an html input element with name="foo". > > > On Jul 29, 11:59 am, Trevis <[email protected]> wrote: > > > I dont have an example handy but i have to imagine that there are > > > plenty out there. Sounds like you already have GWT creating the > > > forms, so i assume that you are setting the encoding type and post > > > method already. I guess you have also created a FormHandler and > > > added that to your FormPanel. Form there, GWT is (can be) out of the > > > equation. The responding server can be anything. > > > > All you should have to do is call setName() on your form elements and > > > your server should be none the wiser that you are using GWT on the > > > front. > > > > (I have not implemented this yet myself as i am deeply in love with > > > RPC, but i have been reading about using traditional forms with GWT > > > because i need to implement image uploading which i plan to do with > > > Apache Commons fileUpload) > > > > Trevis > > > > On Jul 29, 6:47 am, Jeremiah Moses <[email protected]> wrote: > > > > > Hi > > > > I want to save some form data into my database my forms are generated > > using > > > > GWT and i already have code that interacts with my database, now my > > question > > > > is how do i interact with this code ... is RPC the only way to do it in > > GWT > > > > or is there any other way to integrate my gwt UI to this .... my > > existing > > > > code can save to the database and retrive information so all i need to > > do is > > > > send the info to it using the form generated in GWT any examples with > > > > regards to this are welcome > > > > > thanks > > > > > Jeremiah Moses --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
