Wednesday, July 3, 2013

Re: Listbox addItem from sql database from select statement

Add a selection handler to your combo box so you get notified when the combo box selection changes. Then use any of GWT's server communication capabilities (GWT-RPC, RequestFactory, RequestBuilder) to send the selected combo box value to the server so you can use it in your query. 

Of course you should either use SQL prepared statements or escape the combo box value before using it in a query. Otherwise you are vulnerable to SQL injection.

-- 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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment