thanks... On Oct 7, 2:07 pm, Thomas Broyer <t.bro...@gmail.com> wrote: > On Oct 7, 10:25 am, Will <shatner.will...@gmail.com> wrote: > > > > > Hi, > > Beginners qn... > > > I was wondering what is the best policy when constructing a simple > > form in a GWT application. I have manually constructed it and I am > > reading data from textboxes, buttons explicitly with getText() etc... > > > What is the advantages / disadvantages of using FormPanel instead. > > When should this be used? > > > Also in the FormPanel example it refers to an action.. > > form.setAction("/myFormHandler"); > > > What does this refer to? Should this string explicitly reference > > something on server side? > > > Finally!... > > > Where does the onSubmit(), onSubmitComplete() events go?..What do I > > need to implement on server side to get this submitted data? > > Er... how to explain it with simple words... > > A FormPanel is an HTML <form>, with all its processing re. submitting > the form (by default, it creates a hidden iframe used as the target > for the form submission). Does that help you? > > In a few words: if you don't need a FormPanel, don't use it (because > there are many limitations). If you don't know whether you need a > FormPanel, then you probably don't need one. > > One last thing: except in a few browsers (Firefox 3.5+ and latests > Chrome beta/dev versions), forms (FormPanel) are the *only* way to > send a file from the client's machine to a server (file upload). In > other words, and as stated in the JavaDoc, a FileUpload widget is > useless without a FormPanel.
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.