where is form panel documentation?

37 views
Skip to first unread message

tong123123

unread,
Jan 25, 2012, 3:19:49 AM1/25/12
to Google Web Toolkit
in following case:
a search screen with many searching criteria, send to servlet using
formpanel post method, then the servlet retrieve database and let us
said it retrieve the resultset and fill the data to a vector, then how
search result page get the data in vector from servlet?
Also, in
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/FormPanel.html
it mentions
public void onSubmitComplete(FormSubmitCompleteEvent event) {
// When the form submission is successfully completed, this
event is
// fired. Assuming the service returned a response of type
text/html,
// we can get the result text here (see the FormPanel
documentation for
// further explanation).
Window.alert(event.getResults());
}

But I cannot found the FormPanel documentation. where is it?

Thomas Broyer

unread,
Jan 25, 2012, 6:15:32 AM1/25/12
to google-we...@googlegroups.com
You *linked* to it (a very old version, but still).

I guess the "documentation" you're looking for is in the javadoc for the FormPanel() constructor:

There's not much more documentation.

I'd however strongly suggest you use GWT-RPC, RequestFactory or RequestBuilder (depending on your constraint) to talk to your server, as FormPanel as absolutely no way of handling server/network errors and/or timeouts. It requires a bit more work (get fields' value and build request from them) but it's really worth it.

tong123123

unread,
Jan 25, 2012, 8:02:25 PM1/25/12
to Google Web Toolkit
oh, my previous reply is disappear.
I want to ask, if using GWT-RPC to do the send and receving search
result, and the step is:
1) prepare search criteria class to hold the searching criteria?
2) send the search crtieria class to server through GWT-RPC
3) in server, assume the search result is an arrayList, then it return
the result through callback object in onsuccess method?
I have not implemented the above process yet, but I already think, how
to pass the flow to another page in onsuccess method and also how to
pass the arraylist result to that result page to display the search
result?

On Jan 25, 7:15 pm, Thomas Broyer <t.bro...@gmail.com> wrote:
> You *linked* to it (a very old version, but still).
> Latest version can be found at:http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl...
>
> I guess the "documentation" you're looking for is in the javadoc for the
> FormPanel() constructor:http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl...()
Reply all
Reply to author
Forward
0 new messages