I dont get it. What do you want to do?

1.) You are only able to run ResultSet rs = stmt.executeQuery(whereClause);on 
the server. To tell the server to execute this line you need a RPC call 
from the client to the server. So this line can actually never execute 
before a RPC call because a RPC call is needed to tell the server to 
execute it!

2.) You should never generate a query on the client side (= in the browser) 
and then send it to the server and execute it. You dont have any control of 
the client browser and an attacker can send you any query, even DROP 
DATABASE, if your server blindly executes the query received from the 
client. 

3.) An incremental command is used to split a computation heavy task into 
multiple smaller steps. Between these steps the browser has time to do 
other work and thus you browser does not block (JavaScript is executed in a 
single Thread). If you ever need an incremental command then its very 
likely that you need it inside an AsyncCallback.onSuccess() method. 

4.) If you can (depends on your GWT version) use Scheduler.get(). instead 
of DeferredCommand.addCommand() because the latter is deprecated in newer 
GWT versions.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to